FlavoredProject.AdviseHierarchyEvents Method
Subscribes to hierarchy events.
Namespace: Microsoft.VisualStudio.Shell.Flavor
Assemblies: Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'Dichiarazione
Protected Overridable Function AdviseHierarchyEvents ( _
eventSink As IVsHierarchyEvents _
) As UInteger
'Utilizzo
Dim eventSink As IVsHierarchyEvents
Dim returnValue As UInteger
returnValue = Me.AdviseHierarchyEvents(eventSink)
protected virtual uint AdviseHierarchyEvents(
IVsHierarchyEvents eventSink
)
protected:
virtual unsigned int AdviseHierarchyEvents(
IVsHierarchyEvents^ eventSink
)
abstract AdviseHierarchyEvents :
eventSink:IVsHierarchyEvents -> uint32
override AdviseHierarchyEvents :
eventSink:IVsHierarchyEvents -> uint32
protected function AdviseHierarchyEvents(
eventSink : IVsHierarchyEvents
) : uint
Parameters
Return Value
Type: System.UInt32
A unique value, or cookie, that is needed to disable notification of hierarchy events.
Remarks
This method calls AdviseHierarchyEvents.
.NET Framework Security
- 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.