IVsHierarchy.UnadviseHierarchyEvents Method

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

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int UnadviseHierarchyEvents(
	uint dwCookie
)

Parameters

dwCookie
Type: System.UInt32

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

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

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

COM Signature

From vsshell.idl:

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft