ComVariantMarshaller.RefPropagate.ToUnmanaged 方法

定义

根据提供的托管值和非托管值创建非托管 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 实例。

例外

当托管值必须传播回非托管变体时,但托管值类型无法转换为变体的类型。

适用于