共用方式為


ComPtr::Attach 方法

使這 ComPtr 與目前範本型別參數指定的介面型別關連。

void Attach(
   _In_opt_ InterfaceType* other
);

參數

  • other
    介面型別。

需求

標題: client.h

**命名空間:**Microsoft::WRL

請參閱

參考

ComPtr 類別