TypeToTypeInfoMarshaler.MarshalNativeToManaged(IntPtr) 方法

定义

将一个对象从非托管代码封送处理到托管代码。

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

参数

pNativeData
IntPtr

nativeint

指向要转换的非托管对象的指针。

返回

一个托管对象。

实现

例外

pNativeDatanull

注解

CLR 使用指向非托管对象的指定指针调用此方法,以将该对象从非托管代码转换为托管代码,并返回表示非托管数据的托管视图的托管对象。

适用于