ComVariantMarshaller Класс

Определение

Маршалирует 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
Наследование
ComVariantMarshaller
Атрибуты

Комментарии

Поддерживает те же типы, что и любые типы Create<T>(T) с примененными GeneratedComClassAttribute .

Методы

Имя Описание
ConvertToManaged(ComVariant)

Преобразует неуправляемый ComVariant объект в управляемый объект.

ConvertToUnmanaged(Object)

Преобразует управляемый объект в неуправляемый ComVariantобъект.

Free(ComVariant)

Удаляет неуправляемые ComVariant.

Применяется к