共用方式為


ExpandoToDispatchExMarshaler.MarshalNativeToManaged(IntPtr) 方法

定義

封送處理物件,從 Unmanaged 程式碼到 Managed 程式碼。

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

待轉換的 Unmanaged 物件的指標。

傳回

Managed 物件。

實作

例外狀況

pNativeDatanull

備註

CLR 會使用 Unmanaged 物件的指定指標呼叫這個方法,以將該物件從 Unmanaged 程式代碼轉換成 Managed 程式代碼,並傳回 Managed 物件,代表 Unmanaged 數據的 Managed 檢視。

適用於