ExpandoToDispatchExMarshaler 類別

定義

將 COM IDispatchEx 介面封送處理 (Marshal) 至 .NET Framework IExpando 介面或 IReflect 介面,或是反向操作。

public ref class ExpandoToDispatchExMarshaler : System::Runtime::InteropServices::ICustomMarshaler
public class ExpandoToDispatchExMarshaler : System.Runtime.InteropServices.ICustomMarshaler
type ExpandoToDispatchExMarshaler = class
    interface ICustomMarshaler
Public Class ExpandoToDispatchExMarshaler
Implements ICustomMarshaler
繼承
ExpandoToDispatchExMarshaler
實作

備註

由於 CLR 不會自動使用此自訂封送處理器,因此必須宣告如下:

void UseCustomMarshaler([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(ExpandoToDispatchExMarshaler))] IExpando expando);  

建構函式

ExpandoToDispatchExMarshaler()

提供靜態類別建構函式。

方法

CleanUpManagedData(Object)

針對不需要的 Managed 資料執行必要的清除。

CleanUpNativeData(IntPtr)

針對不需要的 Unmanaged 資料執行必要的清除。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetInstance(String)

傳回自訂封送處理器 (Marshaler) 的執行個體。

GetNativeDataSize()

傳回待封送處理之 Unmanaged 資料的大小,以位元組為單位。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MarshalManagedToNative(Object)

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

MarshalNativeToManaged(IntPtr)

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

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於