ComWrappers 類別

定義

重要

此 API 不符合 CLS 規範。

管理 COM IUnknown 類型包裝函式的類別。

public ref class ComWrappers abstract
[System.CLSCompliant(false)]
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public abstract class ComWrappers
[System.CLSCompliant(false)]
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public abstract class ComWrappers
[<System.CLSCompliant(false)>]
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
type ComWrappers = class
[<System.CLSCompliant(false)>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
type ComWrappers = class
Public MustInherit Class ComWrappers
繼承
ComWrappers
衍生
屬性

備註

如需此 API 的詳細資訊,請參閱 ComWrappers 的補充 API 備註

建構函式

ComWrappers()

執行個體建構函式。

方法

ComputeVtables(Object, CreateComInterfaceFlags, Int32)

計算 obj 所需的 Vtable,並參考 flags 的值。

CreateObject(IntPtr, CreateObjectFlags)

externalComObject 指向的物件,建立受管理的物件,並參考 flags 的值。

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetIUnknownImpl(IntPtr, IntPtr, IntPtr)

取得執行階段提供的 IUnknown 實作。

GetOrCreateComInterfaceForObject(Object, CreateComInterfaceFlags)

建立所提供之物件的 COM 表示,該物件可以傳遞至未受管理的環境。

GetOrCreateObjectForComInstance(IntPtr, CreateObjectFlags)

取得最近註冊之管理的物件,或新建並註冊受管理的物件。

GetOrRegisterObjectForComInstance(IntPtr, CreateObjectFlags, Object)

取得最近註冊之受管理的物件,或使用所提供受管理的物件並加以註冊。

GetOrRegisterObjectForComInstance(IntPtr, CreateObjectFlags, Object, IntPtr)

取得目前已註冊的Managed物件,或使用提供的Managed物件並加以註冊。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
RegisterForMarshalling(ComWrappers)

註冊 ComWrappers 執行個體,作為要在執行階段中封送處理的全域執行個體。

RegisterForTrackerSupport(ComWrappers)

註冊 ComWrappers 執行個體,作為參考追蹤器支援的全域執行個體。

ReleaseObjects(IEnumerable)

釋放一般物件或 COM 介面存留期以外的物件集合。

ToString()

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

(繼承來源 Object)
TryGetComInstance(Object, IntPtr)

判斷指定的Managed物件是否為 ComWrappers已建立的Managed包裝函式,如果是,則會傳回包裝的Unmanaged指標。

TryGetObject(IntPtr, Object)

判斷指定的 COM 物件是否為 ComWrappers已建立的 Unmanaged 包裝函式,如果是,則會傳回包裝的 Managed 物件。

適用於