EnumerableToDispatchMarshaler.MarshalNativeToManaged(IntPtr) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Marshals an object from unmanaged code to managed code.
public:
override System::Object ^ MarshalNativeToManaged(IntPtr pNativeData);
public:
virtual System::Object ^ MarshalNativeToManaged(IntPtr pNativeData);
public override object MarshalNativeToManaged (IntPtr pNativeData);
public virtual object MarshalNativeToManaged (IntPtr pNativeData);
abstract member MarshalNativeToManaged : nativeint -> obj
override this.MarshalNativeToManaged : nativeint -> obj
Public Overrides Function MarshalNativeToManaged (pNativeData As IntPtr) As Object
Public Overridable Function MarshalNativeToManaged (pNativeData As IntPtr) As Object
Parameters
- pNativeData
-
IntPtr
nativeint
A pointer to the unmanaged object to be converted.
Returns
A managed object.
Implements
Exceptions
pNativeData
is null
.
Remarks
The CLR calls this method with the specified pointer to an unmanaged object to convert that object from unmanaged code to managed code, and returns a managed object representing the managed view of the unmanaged data.
Applies to
Colaborați cu noi pe GitHub
Sursa pentru acest conținut poate fi găsită pe GitHub, unde puteți, de asemenea, să creați și să consultați probleme și solicitări de tragere. Pentru mai multe informații, consultați ghidul nostru pentru colaboratori.