次の方法で共有


ComPtr::Attach メソッド

現在のテンプレートの型パラメーターによって指定されたインターフェイス型とこの ComPtr を関連付けます。

void Attach(
   _In_opt_ InterfaceType* other
);

パラメーター

  • other
    インターフェイス型。

必要条件

ヘッダー: client.h

Microsoft名前空間: :: WRL

参照

関連項目

ComPtr クラス