Establishes client notification of hierarchy events without the hierarchy implementing IConnectionPointContainer.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int AdviseHierarchyEvents( IVsHierarchyEvents pEventSink, out uint pdwCookie )
- Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchyEvents
[in] IVsHierarchyEvents interface on the object requesting notification of hierarchy events.
Use this method to set up notification of hierarchy events on a particular object by synchronizing the hierarchy window to the hierarchy events. For example, when you add an item in the Solution Explorer window, the hierarchy to which the item is added notifies the listener that has registered as a sink for the event. Based on this event, the Solution Explorer window can then add the new item to the hierarchy.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.