ComInterfaceMarshaller<T> Třída

Definice

Důležité

Toto rozhraní API neodpovídá specifikaci CLS.

Zařadí rozhraní modelu COM pomocí StrategyBasedComWrappers instance.

generic <typename T>
public ref class ComInterfaceMarshaller 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.ComInterfaceMarshaller<>))]
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public static class ComInterfaceMarshaller<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.ComInterfaceMarshaller<>))>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
type ComInterfaceMarshaller<'T> = class
Public Class ComInterfaceMarshaller(Of T)

Parametry typu

T

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

Dědičnost
ComInterfaceMarshaller<T>
Atributy

Poznámky

Tento zařazovač vždy předává Unwrap příznak 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