Share via


HierarchyInfo.Visibility Property

Definition

Gets the visibility of the node in IIS Manager.

public:
 virtual property Microsoft::Web::Management::Client::HierarchyVisibility Visibility { Microsoft::Web::Management::Client::HierarchyVisibility get(); };
public virtual Microsoft.Web.Management.Client.HierarchyVisibility Visibility { get; }
member this.Visibility : Microsoft.Web.Management.Client.HierarchyVisibility
Public Overridable ReadOnly Property Visibility As HierarchyVisibility

Property Value

One of the HierarchyVisibility values. The default is All.

Examples

The following example implements the Visibility property with the value Microsoft.Web.Management.Client.HierarchyVisibility.Hierarchy.

public override HierarchyVisibility Visibility
{
    get
    {
        return HierarchyVisibility.Hierarchy;
    }
}

Remarks

If the value is Microsoft.Web.Management.Client.HierarchyVisibility.All, IIS Manager displays all nodes. If the value is Microsoft.Web.Management.Client.HierarchyVisibility.Hierarchy, IIS Manager displays tree nodes (nodes that appear in the Connections pane) but not content nodes. If the value is Microsoft.Web.Management.Client.HierarchyVisibility.List, IIS Manager displays content nodes (such as files).

Applies to