共用方式為


ExpandoToDispatchExMarshaler.MarshalManagedToNative(Object) 方法

定義

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

public:
 override IntPtr MarshalManagedToNative(System::Object ^ pManagedObj);
public:
 virtual IntPtr MarshalManagedToNative(System::Object ^ pManagedObj);
public override IntPtr MarshalManagedToNative (object pManagedObj);
public virtual IntPtr MarshalManagedToNative (object pManagedObj);
abstract member MarshalManagedToNative : obj -> nativeint
override this.MarshalManagedToNative : obj -> nativeint
Public Overrides Function MarshalManagedToNative (pManagedObj As Object) As IntPtr
Public Overridable Function MarshalManagedToNative (pManagedObj As Object) As IntPtr

參數

pManagedObj
Object

要轉換的 Managed 物件。

傳回

IntPtr

nativeint

Unmanaged 物件的指標。

實作

例外狀況

pManagedObjnull

備註

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

適用於