UniqueComInterfaceMarshaller<T> Classe

Definição

Importante

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

O COM faz interfaces de marshals usando uma instância StrategyBasedComWrappers que cria apenas wrappers nativos de objetos (RCWs) únicos.

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 Genérico

T

O tipo gerido que representa um tipo de interface COM

Herança
UniqueComInterfaceMarshaller<T>
Atributos

Observações

Este marshaller passa sempre as Unwrap bandeiras e UniqueInstance para GetOrCreateObjectForComInstance(IntPtr, CreateObjectFlags).

Métodos

Name Description
ConvertToManaged(Void*)

Converte um ponteiro de interface COM num objeto gerido.

ConvertToUnmanaged(T)

Converte um objeto gerido num ponteiro de interface COM para a interface COM representada por T.

Free(Void*)

Liberta uma referência ao ponteiro da interface COM.

Aplica-se a