UniqueComInterfaceMarshaller<T> Classe
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
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 |
| Free(Void*) |
Liberta uma referência ao ponteiro da interface COM. |