ComVariantMarshaller.ConvertToUnmanaged(Object) 方法

定义

将托管对象转换为非托管 ComVariant

public:
 static System::Runtime::InteropServices::Marshalling::ComVariant ConvertToUnmanaged(System::Object ^ managed);
public static System.Runtime.InteropServices.Marshalling.ComVariant ConvertToUnmanaged (object? managed);
static member ConvertToUnmanaged : obj -> System.Runtime.InteropServices.Marshalling.ComVariant
Public Shared Function ConvertToUnmanaged (managed As Object) As ComVariant

参数

managed
Object

托管对象。

返回

表示提供的托管对象的 ComVariant

例外

不支持 managed 的类型。

适用于