ComVariantMarshaller Classe

Definição

Faz marshaling de um Object para um 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
Herança
ComVariantMarshaller
Atributos

Comentários

Dá suporte aos mesmos tipos, bem como Create<T>(T) a qualquer tipo com GeneratedComClassAttribute aplicado.

Métodos

Nome Description
ConvertToManaged(ComVariant)

Converte um não gerenciado ComVariant em um objeto gerenciado.

ConvertToUnmanaged(Object)

Converte um objeto gerenciado em um não gerenciado ComVariant.

Free(ComVariant)

Descarta o não gerenciado ComVariant.

Aplica-se a