UniqueComInterfaceMarshaller<T> Třída

Definice

Důležité

Toto rozhraní API neodpovídá specifikaci CLS.

Zařazuje rozhraní COM pomocí instance StrategyBasedComWrappers, která vytváří pouze jedinečné nativní obálky objektů (RCWs).

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

Spravovaný typ představující typ rozhraní MODELU COM

Dědičnost
UniqueComInterfaceMarshaller<T>
Atributy

Poznámky

Tento zařazovač vždy předává Unwrap příznaky a UniqueInstance do GetOrCreateObjectForComInstance(IntPtr, CreateObjectFlags).

Metody

ConvertToManaged(Void*)

Převede ukazatel rozhraní COM na spravovaný objekt.

ConvertToUnmanaged(T)

Převede spravovaný objekt na ukazatel rozhraní MODELU COM pro rozhraní modelu COM reprezentované .T

Free(Void*)

Uvolní odkaz na ukazatel rozhraní COM.

Platí pro