In The Hand LtdIn The Hand
GetObjectForNativeVariant Method (pSrcNativeVariant)
NamespacesInTheHand.Runtime.InteropServicesMarshalHelperGetObjectForNativeVariant(IntPtr)
.NET Components for Mobility
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 (Module: InTheHand) Version: 7.0.0.0