UniqueComInterfaceMarshaller<T> Klasa

Definicja

Ważne

Ten interfejs API nie jest zgodny ze specyfikacją CLS.

Marshalsuje interfejsy COM przy użyciu wystąpienia StrategyBasedComWrappers, które tworzy tylko unikatowe natywne otoki obiektów (RCW).

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)

Parametry typu

T

Typ zarządzany reprezentujący typ interfejsu COM

Dziedziczenie
UniqueComInterfaceMarshaller<T>
Atrybuty

Uwagi

Ten marshaller zawsze przekazuje Unwrap flagi i UniqueInstance do GetOrCreateObjectForComInstance(IntPtr, CreateObjectFlags).

Metody

ConvertToManaged(Void*)

Konwertuje wskaźnik interfejsu COM na obiekt zarządzany.

ConvertToUnmanaged(T)

Konwertuje obiekt zarządzany na wskaźnik interfejsu COM dla interfejsu COM reprezentowanego przez T.

Free(Void*)

Zwalnia odwołanie do wskaźnika interfejsu COM.

Dotyczy