HierarchyService Class

 

Contains all the members for customizing the tree view in the Connections pane in IIS Manager. 

Namespace:   Microsoft.Web.Management.Client
Assembly:  Microsoft.Web.Management (in Microsoft.Web.Management.dll)

System.Object
  Microsoft.Web.Management.Client.HierarchyService

public abstract class HierarchyService

NameDescription
System_CAPS_protmethodHierarchyService()

Initializes a new instance of the HierarchyService class.

NameDescription
System_CAPS_pubpropertySelectedInfo

When overridden in a derived class, gets the hierarchy information for the selected node.

NameDescription
System_CAPS_pubmethodAddChildren(HierarchyInfo, IEnumerable<HierarchyInfo>)

When overridden in a derived class, adds the specified child nodes to the parent node.

System_CAPS_pubmethodCollapse(HierarchyInfo)

When overridden in a derived class, collapses the specified node.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodExpand(HierarchyInfo)

When overridden in a derived class, expands the specified node.

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetChildren(HierarchyInfo)

When overridden in a derived class, returns the collection of child nodes of the specified node.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetTasks(HierarchyInfo)

When overridden in a derived class, retrieves a collection of tasks for the node.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodRefresh(HierarchyInfo)

When overridden in a derived class, refreshes the Connections pane in IIS Manager.

System_CAPS_pubmethodRemove(HierarchyInfo)

When overridden in a derived class, removes the specified node from the Connections pane in IIS Manager.

System_CAPS_pubmethodSelect(HierarchyInfo)

When overridden in a derived class, selects the specified node in the Connections pane in IIS Manager. 

System_CAPS_pubmethodSyncSelection(HierarchyInfoSyncSelectionEventArgs)

When overridden in a derived class, synchronizes the node in the Connections pane tree view to a specified node.

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodUpdate(HierarchyInfo)

When overridden in a derived class, updates the view of the specified node.

NameDescription
System_CAPS_pubeventChildrenAdded

Occurs when child nodes are added to a node, either through the IIS Manager user interface or programmatically.

System_CAPS_pubeventInfoCollapsed

Occurs when a node is collapsed, either through the IIS Manager user interface or programmatically.

System_CAPS_pubeventInfoExpanded

Occurs when a node is expanded, either through the IIS Manager user interface or programmatically.

System_CAPS_pubeventInfoRefreshed

Occurs when a node is refreshed, either through the IIS Manager user interface or programmatically.

System_CAPS_pubeventInfoRemoved

Occurs when a node is removed from the hierarchy in the Connections pane, either through the IIS Manager user interface or programmatically. 

System_CAPS_pubeventInfoUpdated

Occurs when the hierarchy service is updated.

System_CAPS_pubeventSelectedInfoChanged

Occurs when the selected object is changed.

You can get a reference to a HierarchyService object through a service provider. You can use the HierarchyService to handle the tree programmatically, exposing methods to perform actions such as expanding or collapsing a node, selecting a node, and refreshing a node.

The hierarchy is displayed in the Connections pane of IIS Manager. This class provides the extensibility features of the hierarchy tree.

The members of this abstract class are empty. This class exists as a convenience for creating HierarchyService objects.

The HierarchyInfo object represents a node in the Connections pane and is a key object in the HierarchyService class.

The following example demonstrates most of the events and methods of the HierarchyService class.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: