ComInterfaceMarshaller<T> クラス

定義

重要

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

インスタンスを使用して COM インターフェイスを StrategyBasedComWrappers マーシャリングします。

generic <typename T>
public ref class ComInterfaceMarshaller 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.ComInterfaceMarshaller<>))]
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public static class ComInterfaceMarshaller<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.ComInterfaceMarshaller<>))>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
type ComInterfaceMarshaller<'T> = class
Public Class ComInterfaceMarshaller(Of T)

型パラメーター

T

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

継承
ComInterfaceMarshaller<T>
属性

注釈

このマーシャラーは常に フラグを UnwrapGetOrCreateObjectForComInstance(IntPtr, CreateObjectFlags)渡します。

メソッド

ConvertToManaged(Void*)

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

ConvertToUnmanaged(T)

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

Free(Void*)

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

適用対象