ComVariantMarshaller 类

定义

封送 ComVariantObject

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

适用于