共用方式為


DocData.HierarchyChanged Event

Occurs when the document's hierarchy or Item ID changes.

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

Syntax

'宣告
Public Event HierarchyChanged As EventHandler
public event EventHandler HierarchyChanged
public:
 event EventHandler^ HierarchyChanged {
    void add (EventHandler^ value);
    void remove (EventHandler^ value);
}
member HierarchyChanged : IEvent<EventHandler,
    EventArgs>
JScript does not support events.

Remarks

For more information about events, see Consuming Events.

.NET Framework Security

See Also

Reference

DocData Class

Microsoft.VisualStudio.Modeling.Shell Namespace