UniqueComInterfaceMarshaller<T> Classe

Definição

Importante

Esta API não está em conformidade com CLS.

Realiza marshaling de interfaces COM usando uma instância StrategyBasedComWrappers que cria apenas RCWs (wrappers de objeto nativo) exclusivos.

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)

Parâmetros de tipo

T

O tipo gerenciado que representa um tipo de interface COM

Herança
UniqueComInterfaceMarshaller<T>
Atributos

Comentários

Esse marshaller sempre passa os Unwrap sinalizadores e UniqueInstance para GetOrCreateObjectForComInstance(IntPtr, CreateObjectFlags).

Métodos

ConvertToManaged(Void*)

Converte um ponteiro de interface COM em um objeto gerenciado.

ConvertToUnmanaged(T)

Converte um objeto gerenciado em um ponteiro de interface COM para a interface COM representada por T.

Free(Void*)

Libera uma referência ao ponteiro da interface COM.

Aplica-se a