Compartir a través de


ComInterfaceMarshaller<T> Clase

Definición

Importante

Esta API no es conforme a CLS.

Serializa una interfaz COM mediante una StrategyBasedComWrappers instancia de .

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)

Parámetros de tipo

T

Tipo administrado que representa un tipo de interfaz COM

Herencia
ComInterfaceMarshaller<T>
Atributos

Comentarios

Este serializador siempre pasa la Unwrap marca 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