UniqueComInterfaceMarshaller<T> クラス

定義

重要

この API は CLS 準拠ではありません。

固有のネイティブ オブジェクト ラッパー (RCW) のみを作成する StrategyBasedComWrappers インスタンスを使用して COM インターフェイスをマーシャリングします。

generic <typename T>
public ref class UniqueComInterfaceMarshaller abstract sealed
[System.CLSCompliant(false)]
[System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute+GenericPlaceholder), System.Runtime.InteropServices.Marshalling.MarshalMode.Default, typeof(System.Runtime.InteropServices.Marshalling.UniqueComInterfaceMarshaller<>))]
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public static class UniqueComInterfaceMarshaller<T>
[<System.CLSCompliant(false)>]
[<System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute+GenericPlaceholder), System.Runtime.InteropServices.Marshalling.MarshalMode.Default, typeof(System.Runtime.InteropServices.Marshalling.UniqueComInterfaceMarshaller<>))>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
type UniqueComInterfaceMarshaller<'T> = class
Public Class UniqueComInterfaceMarshaller(Of T)

型パラメーター

T

COM インターフェイス型を表すマネージド型

継承
UniqueComInterfaceMarshaller<T>
属性

注釈

このマーシャラーは常に、 Unwrap フラグと UniqueInstance フラグを に GetOrCreateObjectForComInstance(IntPtr, CreateObjectFlags)渡します。

メソッド

ConvertToManaged(Void*)

COM インターフェイス ポインターをマネージド オブジェクトに変換します。

ConvertToUnmanaged(T)

マネージド オブジェクトを、 で T表される COM インターフェイスの COM インターフェイス ポインターに変換します。

Free(Void*)

COM インターフェイス ポインターへの参照を解放します。

適用対象