共用方式為


ComVariantMarshaller.ConvertToUnmanaged(Object) 方法

定義

將 Managed 物件轉換為 Unmanaged 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

Managed 物件。

傳回

表示所提供Managed物件的 ComVariant

例外狀況

不支援 managed 的類型。

適用於