EnumerableToDispatchMarshaler.MarshalNativeToManaged(IntPtr) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
封送處理物件,從 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 物件。
實作
例外狀況
pNativeData
為 null
。
備註
CLR 會使用 Unmanaged 物件的指定指標呼叫這個方法,以將該物件從 Unmanaged 程式代碼轉換成 Managed 程式代碼,並傳回 Managed 物件,代表 Unmanaged 數據的 Managed 檢視。