UniqueComInterfaceMarshaller<T> Klasse
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
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 |
Free(Void*) |
Gibt einen Verweis auf den COM-Schnittstellenzeiger frei. |
Gilt für:
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für