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 封送器当前状态的实例。
例外
当托管值必须传播回非托管变体时,但托管值类型无法转换为变体的类型。