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.
Marshals COM-Schnittstellen mithilfe einer StrategyBasedComWrappers-Instanz, die nur eindeutige systemeigene 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 Und UniqueInstance Flaggen an GetOrCreateObjectForComInstance(IntPtr, CreateObjectFlags).
Methoden
| Name | Beschreibung |
|---|---|
| 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. |