Marshal.GetNativeVariantForObject Method (Object, IntPtr)
Converts an object to a COM VARIANT.
Assembly: mscorlib (in mscorlib.dll)
[SecurityCriticalAttribute] public static void GetNativeVariantForObject( object obj, IntPtr pDstNativeVariant )
The pDstNativeVariant parameter must point to sufficient memory to store the resulting VARIANT. Also, the implementation of this method calls the VariantInit function on the raw memory that the pDstNativeVariant parameter points to.
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.
Available since 8
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Available since 8.1