IVsHierarchy.UnadviseHierarchyEvents(UInt32) Method

Definition

Disables client notification of hierarchy events without requiring that the hierarchy implement IConnectionPointContainer.

C++/CX
public:
 int UnadviseHierarchyEvents(unsigned int dwCookie);

Parameters

dwCookie
UInt32

[in] Abstract handle to the client that was disabled from receiving notifications of hierarchy events.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

This is the same dwCookie that passed in with the call to AdviseHierarchyEvents.

COM Signature

From vsshell.idl:

cpp#
HRESULT IVsHierarchy::UnadviseHierarchyEvents(  
   [in] VSCOOKIE dwCookie  
);  

Applies to

Product Versions
Visual Studio SDK 2015, 2017, 2019, 2022