ComVariantMarshaller.ConvertToManaged(ComVariant) 方法

定义

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

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

参数

unmanaged
ComVariant

非托管变体。

返回

一个托管对象,表示与 unmanaged相同的值。

例外

不支持存储在 unmanaged 中的数据类型。

适用于