共用方式為


ComVariantMarshaller.RefPropagate.ToUnmanaged 方法

定義

根據提供的 Managed 和 Unmanaged 值建立 Unmanaged 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 實例。

例外狀況

當 Managed 值必須傳播回 Unmanaged 變體時,但 Managed 實值類型無法轉換成 Variant 的類型。

適用於