ComVariantMarshaller Klass

Definition

Marskalkar en Object till en 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
Arv
ComVariantMarshaller
Attribut

Kommentarer

Har stöd för samma typer och Create<T>(T) alla typer med GeneratedComClassAttribute tillämpad.

Metoder

Name Description
ConvertToManaged(ComVariant)

Konverterar ett ohanterat till ett hanterat ComVariant objekt.

ConvertToUnmanaged(Object)

Konverterar ett hanterat objekt till en ohanterad ComVariant.

Free(ComVariant)

Bortser från ohanterade ComVariant.

Gäller för