次の方法で共有


FlavoredProject.IVsHierarchy.AdviseHierarchyEvents Method

Definition

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.

Applies to