EnumerableToDispatchMarshaler.MarshalNativeToManaged Method (IntPtr)

 

Marshals an object from unmanaged code to managed code.

Namespace:   System.Runtime.InteropServices.CustomMarshalers
Assembly:  CustomMarshalers (in CustomMarshalers.dll)

public virtual object MarshalNativeToManaged(
	IntPtr pNativeData
)

Parameters

pNativeData
Type: System.IntPtr

A pointer to the unmanaged object to be converted.

Return Value

Type: System.Object

A managed object.

Exception Condition
ArgumentNullException

pNativeData is null.

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.

.NET Framework
Available since 1.1
Return to top
Show: