ComVariantMarshaller.RefPropagate.ToUnmanaged 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
根據提供的管理值和非管理值建立一個非管理 ComVariant 模式。
public:
System::Runtime::InteropServices::Marshalling::ComVariant ToUnmanaged();
public System.Runtime.InteropServices.Marshalling.ComVariant ToUnmanaged();
member this.ToUnmanaged : unit -> System.Runtime.InteropServices.Marshalling.ComVariant
Public Function ToUnmanaged () As ComVariant
傳回
代表 ComVariant 指揮者當前狀態的實例。
例外狀況
當管理值必須傳回非管理變體,但管理值類型無法轉換為變體的類型時。