In The Hand - .NET Components for Mobility
GetObjectForNativeVariant Method (pSrcNativeVariant)
NamespacesInTheHand.Runtime.InteropServicesMarshalHelperGetObjectForNativeVariant(IntPtr)
Converts a COM VARIANT to an object.
Declaration Syntax
C#Visual Basic
public static Object GetObjectForNativeVariant(
	IntPtr pSrcNativeVariant
)
Public Shared Function GetObjectForNativeVariant ( _
	pSrcNativeVariant As IntPtr _
) As Object
Parameters
pSrcNativeVariant (IntPtr)
An IntPtr containing a COM VARIANT.
Return Value
An object corresponding to the pSrcNativeVaraint parameter.
Remarks
GetObjectForNativeVariant returns a managed object corresponding to a raw pointer to an unmanaged VARIANT type. GetObjectForNativeVariant provides the opposite functionality of GetNativeVariantForObject(Object, IntPtr).
Exceptions
ExceptionCondition
ArgumentExceptionpSrcNativeVariant is not a valid VARIANT type.

Assembly: InTheHand.WindowsMobile (Module: InTheHand.WindowsMobile) Version: 3.2.0.0