![]()
An object that corresponds to the pSrcNativeVariant parameter.
Marshal.GetObjectForNativeVariant(IntPtr) returns a managed object that corresponds to a raw pointer to an unmanaged VARIANT type. The interop marshaler performs the identical transformation when exposing a VARIANT type to managed code.
Marshal.GetObjectForNativeVariant(IntPtr) provides the opposite functionality of Marshal.GetNativeVariantForObject(object, IntPtr).
When the VARIANT type is VT_ERROR, Marshal.GetObjectForNativeVariant(IntPtr) returns an object of type Int32 instead of UInt32.