Share via


ComPtr::Attach Method

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at ComPtr::Attach Method.

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

Syntax

void Attach(  
   _In_opt_ InterfaceType* other  
);  

Parameters

other
An interface type.

Requirements

Header: client.h

Namespace: Microsoft::WRL

See Also

ComPtr Class