Bahasa

ComVariantMarshaller Kelas

Definisi

Marsekal untuk Object .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 Create<T>(T) yang sama serta jenis apa pun dengan GeneratedComClassAttribute diterapkan.

Metode

Nama Deskripsi
ConvertToManaged(ComVariant)

Mengonversi objek yang tidak dikelola ke objek terkelola ComVariant .

ConvertToUnmanaged(Object)

Mengonversi objek terkelola menjadi tidak terkelola ComVariant.

Free(ComVariant)

Buang yang tidak dikelola ComVariant.

Berlaku untuk