Bagikan melalui


ComVariantMarshaller Kelas

Definisi

Marsekal Object ke 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
Warisan
ComVariantMarshaller
Atribut

Keterangan

Mendukung jenis yang sama seperti Create<T>(T) serta jenis apa pun dengan GeneratedComClassAttribute diterapkan.

Metode

ConvertToManaged(ComVariant)

Mengonversi ComVariant yang tidak dikelola menjadi objek terkelola.

ConvertToUnmanaged(Object)

Mengonversi objek terkelola ke ComVariantyang tidak dikelola.

Free(ComVariant)

Buang ComVariantyang tidak dikelola .

Berlaku untuk