Share via


ModuleListPageGrouping(String, String) Constructor

Definition

Initializes a new instance of the ModuleListPageGrouping class.

public:
 ModuleListPageGrouping(System::String ^ name, System::String ^ text);
public ModuleListPageGrouping (string name, string text);
new Microsoft.Web.Management.Client.ModuleListPageGrouping : string * string -> Microsoft.Web.Management.Client.ModuleListPageGrouping
Public Sub New (name As String, text As String)

Parameters

name
String

The name of the grouping.

text
String

The name of the grouping from a localized resource.

Examples

The following example calls the ModuleListPageGrouping constructor and overrides the Microsoft.Web.Management.Client.Win32.ModuleListPage.Groupings property.

internal class DemoPage : ModuleListPage {

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

internal class DemoHierProvidr : HierarchyProvider
{

    private DemoHierarchyInfo _info;
    public DemoHierProvidr(IServiceProvider serviceProvider)
        : base(serviceProvider)
    {
    }
public override ModuleListPageGrouping[] Groupings {

    get {
        if (_entryTypeGrouping == null ||
            _inheritedGroup == null ) {

            // insure _entryTypeGrouping is created
           setMyGrouping();    

           
            _inheritedGroup = new ListViewGroup(
                "EntryTypeInherited");
            _localGroup = new ListViewGroup(
                "EntryTypeLocal");
        }

        return new ModuleListPageGrouping[] {
                       _entryTypeGrouping
                   };
    }
} 

Remarks

The Microsoft.Web.Management.Client.Win32.ModuleListPage.Groupings property gets an array of ModuleListPageGrouping objects.

Applies to