ComVariantMarshaller Classe

Definição

Marshals 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

Observações

Suporta os mesmos tipos, Create<T>(T) assim como quaisquer tipos com GeneratedComClassAttribute aplicado.

Métodos

Name Description
ConvertToManaged(ComVariant)

Converte um objeto não gerido ComVariant num objeto gerido.

ConvertToUnmanaged(Object)

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

Free(ComVariant)

Elimina os não geridos ComVariant.

Aplica-se a