Condividi tramite


ComVariantMarshaller Classe

Definizione

Effettua il marshalling di 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
Ereditarietà
ComVariantMarshaller
Attributi

Commenti

Supporta gli stessi tipi di Create<T>(T) e qualsiasi tipo con GeneratedComClassAttribute applicato.

Metodi

ConvertToManaged(ComVariant)

Converte un ComVariant non gestito in un oggetto gestito.

ConvertToUnmanaged(Object)

Converte un oggetto gestito in un ComVariantnon gestito.

Free(ComVariant)

Elimina il ComVariantnon gestito.

Si applica a