HierarchyInfo Class

Definition

Manages the hierarchy of objects added to a Module derived class.

public ref class HierarchyInfo abstract : IDisposable, IServiceProvider
public abstract class HierarchyInfo : IDisposable, IServiceProvider
type HierarchyInfo = class
    interface IServiceProvider
    interface IDisposable
Public MustInherit Class HierarchyInfo
Implements IDisposable, IServiceProvider
Inheritance
HierarchyInfo
Implements

Examples

internal class DemoHierarchyInfo : HierarchyInfo
{
public DemoHierarchyInfo(IServiceProvider serviceProvider)
    : base(serviceProvider)
{
    DemoHierarchyInfoInit();
    initTraceP();
}
}

Remarks

The HierarchyInfo class represents a node in the Connections pane of IIS Manager. The nodes are displayed in a tree view. The local server, Sites, and Application Pools are all examples of HierarchyInfo nodes.

Notes to Implementers

When you inherit from HierarchyInfo, you must override the following members: NodeType and Text.

Constructors

HierarchyInfo(IServiceProvider)

Initializes a new instance of the HierarchyInfo class, using the specified service provider.

Fields

Application

The literal string "Microsoft.Web.Management.HierarchyInfo.Application".

ApplicationConnection

The literal string "Microsoft.Web.Management.HierarchyInfo.ApplicationConnection".

ApplicationPools

The literal string "Microsoft.Web.Management.HierarchyInfo.ApplicationPools".

File

The literal string "Microsoft.Web.Management.HierarchyInfo.File".

Folder

The literal string "Microsoft.Web.Management.HierarchyInfo.Folder".

FtpSites

The literal string "Microsoft.Web.Management.HierarchyInfo.FtpSites".

ServerConnection

The literal string "Microsoft.Web.Management.HierarchyInfo.ServerConnection".

Site

The literal string "Microsoft.Web.Management.HierarchyInfo.Site".

SiteConnection

The literal string "Microsoft.Web.Management.HierarchyInfo.SiteConnection".

Sites

The literal string "Microsoft.Web.Management.HierarchyInfo.Sites".

Start

The literal string "Microsoft.Web.Management.HierarchyInfo.Start".

VirtualDirectory

The literal string "Microsoft.Web.Management.HierarchyInfo.VirtualDirectory".

Properties

Connection

Gets the connection associated with the node.

Image

Gets the image associated with the node for use in IIS Manager.

IsExtendable

Gets a value indicating whether the node supports child nodes.

IsLoaded

Gets a value indicating whether all child nodes have been added.

NodeType

When overridden in a derived class, gets the type of node added to the hierarchy.

NodeTypeName

When overridden in a derived class, gets the instance name of the node added to the hierarchy.

Parent

Gets the parent node.

Priority

Gets the listing priority order for the node.

Properties

When overridden in a derived class, gets a dictionary of node-specific information.

SupportsChildren

Gets a value indicating whether the node supports child nodes.

SupportsDelete

Gets a value indicating whether the node supports removal.

SupportsRename

Gets a value indicating whether the node supports renaming.

Tasks

Gets a container of user-definable methods.

Text

When overridden in a derived class, gets the name for the node.

ToolTip

When overridden in the derived class, gets the tooltip text for the node.

Visibility

Gets the visibility of the node in IIS Manager.

Methods

Collapse()

Hides the child nodes.

Delete()

Deletes the node from the hierarchy.

Dispose()

Releases all resources used by the HierarchyInfo.

Expand()

Expands the node and displays the child nodes.

GetChildren()

When overridden in the derived class, returns the child nodes.

GetService(Type)

Gets the service object of the specified type.

Navigate(Type)

Navigates the IIS Manager Connections pane to the specified page.

Navigate(Type, Object)

Navigates the IIS Manager Connections pane to the specified page.

OnDeleting(CancelEventArgs)

Occurs when the Delete() method is called from the user interface (UI) or programmatically.

OnRenamed(HierarchyRenameEventArgs)

Occurs when the Rename command is called from the user interface (UI) or programmatically and is not canceled from the OnRenaming(HierarchyRenameEventArgs) method.

OnRenaming(HierarchyRenameEventArgs)

Occurs when the Rename command is called from the user interface (UI) or programmatically.

OnSelected()

Occurs when the object derived from HierarchyInfo is selected.

Refresh()

Occurs when the Refresh command is called from the user interface (UI) or programmatically.

Select()

Navigates to the calling HierarchyInfo derived object in the IIS Manager Connections pane.

Update()

Updates the view of the current node in the Connections pane of IIS Manager.

Explicit Interface Implementations

IDisposable.Dispose()

Releases all unmanaged resources used by the HierarchyInfo.

IServiceProvider.GetService(Type)

Gets the service object of the specified type.

Applies to