Share via


UniqueComInterfaceMarshaller<T> Klasse

Definition

Wichtig

Diese API ist nicht CLS-kompatibel.

Marshallt COM-Schnittstellen mithilfe eines StrategyBasedComWrappers-instance, der nur eindeutige native Objektwrapper (RCWs) erstellt.

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)

Typparameter

T

Der verwaltete Typ, der einen COM-Schnittstellentyp darstellt

Vererbung
UniqueComInterfaceMarshaller<T>
Attribute

Hinweise

Dieser Marshaller übergibt immer die Unwrap Flags und UniqueInstance an GetOrCreateObjectForComInstance(IntPtr, CreateObjectFlags).

Methoden

ConvertToManaged(Void*)

Konvertiert einen COM-Schnittstellenzeiger in ein verwaltetes Objekt.

ConvertToUnmanaged(T)

Konvertiert ein verwaltetes Objekt in einen COM-Schnittstellenzeiger für die COM-Schnittstelle, die durch dargestellt wird T.

Free(Void*)

Gibt einen Verweis auf den COM-Schnittstellenzeiger frei.

Gilt für: