Comparteix a través de


ComVariantMarshaller Clase

Definición

Serializa un Object a un ComVariant.

public ref class ComVariantMarshaller abstract sealed
[System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Object), System.Runtime.InteropServices.Marshalling.MarshalMode.Default, typeof(System.Runtime.InteropServices.Marshalling.ComVariantMarshaller))]
[System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Object), System.Runtime.InteropServices.Marshalling.MarshalMode.UnmanagedToManagedRef, typeof(System.Runtime.InteropServices.Marshalling.ComVariantMarshaller+RefPropagate))]
public static class ComVariantMarshaller
[<System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Object), System.Runtime.InteropServices.Marshalling.MarshalMode.Default, typeof(System.Runtime.InteropServices.Marshalling.ComVariantMarshaller))>]
[<System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Object), System.Runtime.InteropServices.Marshalling.MarshalMode.UnmanagedToManagedRef, typeof(System.Runtime.InteropServices.Marshalling.ComVariantMarshaller+RefPropagate))>]
type ComVariantMarshaller = class
Public Class ComVariantMarshaller
Herencia
ComVariantMarshaller
Atributos

Comentarios

Admite los mismos tipos que Create<T>(T), así como los tipos con GeneratedComClassAttribute aplicados.

Métodos

ConvertToManaged(ComVariant)

Convierte un ComVariant no administrado en un objeto administrado.

ConvertToUnmanaged(Object)

Convierte un objeto administrado en un ComVariantno administrado.

Free(ComVariant)

Elimina el ComVariantno administrado.

Se aplica a