Teilen über


ComVariantMarshaller Klasse

Definition

Marshals eine Object zu einem 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
Vererbung
ComVariantMarshaller
Attribute

Hinweise

Unterstützt dieselben Typen wie Create<T>(T) sowie alle Typen, auf die GeneratedComClassAttribute angewendet werden.

Methoden

ConvertToManaged(ComVariant)

Konvertiert eine nicht verwaltete ComVariant in ein verwaltetes Objekt.

ConvertToUnmanaged(Object)

Konvertiert ein verwaltetes Objekt in ein nicht verwaltetes ComVariant.

Free(ComVariant)

Entfernt die nicht verwaltete ComVariant.

Gilt für: