IVsUIHierarchy::AdviseHierarchyEvents Method (IVsHierarchyEvents^, UInt32)
Visual Studio 2015
Allows clients to hook up for event notifications without making the hierarchy implement IConnectionPointContainer.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int AdviseHierarchyEvents( IVsHierarchyEvents^ pEventSink, [OutAttribute] unsigned int% pdwCookie )
Parameters
- pEventSink
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsHierarchyEvents^
[in] IVsHierarchyEvents interface on the object requesting notification of hierarchy events.
- pdwCookie
-
Type:
System::UInt32
[out] Pointer to a unique identifier for the referenced event sink. This value is required to unadvise the event sink using UnadviseHierarchyEvents.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsUIHierarchy::AdviseHierarchyEvents(
[in] IVsHierarchyEvents *pEventSink,
[out] VSCOOKIE *pdwCookie
);
Show: