Share via


ModuleListPage.DefaultGrouping Property

Definition

Gets the default grouping.

protected:
 virtual property Microsoft::Web::Management::Client::ModuleListPageGrouping ^ DefaultGrouping { Microsoft::Web::Management::Client::ModuleListPageGrouping ^ get(); };
protected virtual Microsoft.Web.Management.Client.ModuleListPageGrouping DefaultGrouping { get; }
member this.DefaultGrouping : Microsoft.Web.Management.Client.ModuleListPageGrouping
Protected Overridable ReadOnly Property DefaultGrouping As ModuleListPageGrouping

Property Value

The default ModuleListPageGrouping object.

Examples

The following example sets the default grouping to Entry Type.

internal class DemoPage : ModuleListPage {

    public DemoPage() : base() { }
    ModuleListPageGrouping _entryTypeGrouping;

protected override 
    ModuleListPageGrouping DefaultGrouping {

    get {
        if (_entryTypeGrouping == null) {
            _entryTypeGrouping = setMyGrouping();
        }
        return _entryTypeGrouping;
    }
}

Remarks

This property sets the default view in the Group by drop-down list in IIS Manager. In IIS Manager, the default grouping at the server, site, and application level is Area. The default grouping for the Application Pools and Sites pages is No Grouping.

The default implementation gets the Microsoft.Web.Management.Client.ModuleListPageGrouping object that is created with the string "No Grouping" for the Name and Text properties.

Applies to