Share via


DocData.OnHierarchyChanged Method

Alerts listeners that the Item ID that is assigned to the document has changed.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)

Syntax

'Declaration
Protected Overridable Sub OnHierarchyChanged ( _
    e As EventArgs _
)
protected virtual void OnHierarchyChanged(
    EventArgs e
)
protected:
virtual void OnHierarchyChanged(
    EventArgs^ e
)
abstract OnHierarchyChanged : 
        e:EventArgs -> unit  
override OnHierarchyChanged : 
        e:EventArgs -> unit
protected function OnHierarchyChanged(
    e : EventArgs
)

Parameters

Remarks

The Item ID identifies the document in the hierarchy.

This method invokes the IVsHierarchy interface.

Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.

The OnHierarchyChanged method also allows derived classes to handle the event without attaching a delegate. This technique is recommended for handling the event in a derived class.

Notes to Inheritors

When you override OnHierarchyChanged in a derived class, be sure to call the base class’s OnHierarchyChanged method so that registered delegates receive the event.

.NET Framework Security

See Also

Reference

DocData Class

Microsoft.VisualStudio.Modeling.Shell Namespace