ComPtr::Attach 方法

将此 ComPtr 与当前模板类型参数指定的接口类型。

void Attach(
   _In_opt_ InterfaceType* other
);

参数

  • other
    接口类型。

要求

**标头:**client.h

命名空间: Microsoft::WRL

请参见

参考

ComPtr 类