Condividi tramite


FlavoredProject.IVsUIHierarchy.AdviseHierarchyEvents Method

Definition

Subscribes to hierarchy events.

 virtual int Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy.AdviseHierarchyEvents(Microsoft::VisualStudio::Shell::Interop::IVsHierarchyEvents ^ pEventSink, [Runtime::InteropServices::Out] System::UInt32 % pdwCookie) = Microsoft::VisualStudio::Shell::Interop::IVsUIHierarchy::AdviseHierarchyEvents;
int Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy.AdviseHierarchyEvents(Microsoft::VisualStudio::Shell::Interop::IVsHierarchyEvents const & pEventSink, [Runtime::InteropServices::Out] unsigned int & pdwCookie);
int IVsUIHierarchy.AdviseHierarchyEvents (Microsoft.VisualStudio.Shell.Interop.IVsHierarchyEvents pEventSink, out uint pdwCookie);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy.AdviseHierarchyEvents : Microsoft.VisualStudio.Shell.Interop.IVsHierarchyEvents * uint32 -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy.AdviseHierarchyEvents : Microsoft.VisualStudio.Shell.Interop.IVsHierarchyEvents * uint32 -> int
Function AdviseHierarchyEvents (pEventSink As IVsHierarchyEvents, ByRef pdwCookie As UInteger) As Integer Implements IVsUIHierarchy.AdviseHierarchyEvents

Parameters

pdwCookie
UInt32

A unique value, or cookie, that is needed to disable notification of hierarchy events.

Returns

The cookie.

Implements

Remarks

This method calls the AdviseHierarchyEvents method, which calls the AdviseHierarchyEvents method on the inner project.

Applies to