共用方式為


ICustomMarshaler.MarshalNativeToManaged(IntPtr) 方法

定義

將 Unmanaged 資料轉換為 Managed 資料。

public:
 System::Object ^ MarshalNativeToManaged(IntPtr pNativeData);
public object MarshalNativeToManaged (IntPtr pNativeData);
abstract member MarshalNativeToManaged : nativeint -> obj
Public Function MarshalNativeToManaged (pNativeData As IntPtr) As Object

參數

pNativeData
IntPtr

nativeint

要包裝的 Unmanaged 資料指標。

傳回

代表 COM 資料之 Managed 檢視的物件。

適用於