FlavoredProject.IVsHierarchy.AdviseHierarchyEvents Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Subscribes to hierarchy events.
virtual int Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.AdviseHierarchyEvents(Microsoft::VisualStudio::Shell::Interop::IVsHierarchyEvents ^ eventSink, [Runtime::InteropServices::Out] System::UInt32 % cookie) = Microsoft::VisualStudio::Shell::Interop::IVsHierarchy::AdviseHierarchyEvents;
int Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.AdviseHierarchyEvents(Microsoft::VisualStudio::Shell::Interop::IVsHierarchyEvents const & eventSink, [Runtime::InteropServices::Out] unsigned int & cookie);
int IVsHierarchy.AdviseHierarchyEvents (Microsoft.VisualStudio.Shell.Interop.IVsHierarchyEvents eventSink, out uint cookie);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.AdviseHierarchyEvents : Microsoft.VisualStudio.Shell.Interop.IVsHierarchyEvents * uint32 -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.AdviseHierarchyEvents : Microsoft.VisualStudio.Shell.Interop.IVsHierarchyEvents * uint32 -> int
Function AdviseHierarchyEvents (eventSink As IVsHierarchyEvents, ByRef cookie As UInteger) As Integer Implements IVsHierarchy.AdviseHierarchyEvents
Parameters
- eventSink
- IVsHierarchyEvents
The IVsHierarchyEvents to which to register.
- cookie
- UInt32
[out] Returns the unique identifier used to unsubscribe for these events.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
Remarks
This method calls the AdviseHierarchyEvents method.