Udostępnij za pośrednictwem


ComVariantMarshaller Klasa

Definicja

Marshaluje Object do 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
Dziedziczenie
ComVariantMarshaller
Atrybuty

Uwagi

Obsługuje te same typy, co Create<T>(T), a także wszelkie typy z zastosowanymi GeneratedComClassAttribute.

Metody

ConvertToManaged(ComVariant)

Konwertuje niezarządzane ComVariant na obiekt zarządzany.

ConvertToUnmanaged(Object)

Konwertuje obiekt zarządzany na niezarządzany ComVariant.

Free(ComVariant)

Usuwa niezarządzane ComVariant.

Dotyczy