Share via


ComPtr::Attach Method

Associates this ComPtr with the interface type specified by the current template type parameter.

void Attach(
   _In_opt_ InterfaceType* other
);

Parameters

  • other
    An interface type.

Requirements

Header: client.h

Namespace: Microsoft::WRL

See Also

Reference

ComPtr Class