Compartir a través de


UniqueComInterfaceMarshaller<T> Clase

Definición

Importante

Esta API no es conforme a CLS.

Serializa interfaces COM mediante una instancia strategyBasedComWrappers que solo crea contenedores de objetos nativos únicos (RCW).

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

Tipo administrado que representa un tipo de interfaz COM

Herencia
UniqueComInterfaceMarshaller<T>
Atributos

Comentarios

Este serializador siempre pasa las Unwrap marcas y UniqueInstance a GetOrCreateObjectForComInstance(IntPtr, CreateObjectFlags).

Métodos

ConvertToManaged(Void*)

Convierte un puntero de interfaz COM en un objeto administrado.

ConvertToUnmanaged(T)

Convierte un objeto administrado en un puntero de interfaz COM para la interfaz COM representada por T.

Free(Void*)

Libera una referencia al puntero de interfaz COM.

Se aplica a