Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ComPtr::AsWeak Method

 

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

Retrieves a weak reference to the current object.

HRESULT AsWeak(  
   _Out_ WeakRef* pWeakRef  
);  

Parameters

pWeakRef
When this operation completes, a pointer to a weak reference object.

S_OK if successful; otherwise, an HRESULT that indicates the error.

Header: client.h

Namespace: Microsoft::WRL

ComPtr Class

Show:
© 2017 Microsoft