ModuleListPage.Groupings Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the groupings for the page.
public:
virtual property cli::array <Microsoft::Web::Management::Client::ModuleListPageGrouping ^> ^ Groupings { cli::array <Microsoft::Web::Management::Client::ModuleListPageGrouping ^> ^ get(); };
public virtual Microsoft.Web.Management.Client.ModuleListPageGrouping[] Groupings { get; }
member this.Groupings : Microsoft.Web.Management.Client.ModuleListPageGrouping[]
Public Overridable ReadOnly Property Groupings As ModuleListPageGrouping()
Property Value
An array of ModuleListPageGrouping objects for the page.
Examples
The following example overrides the Groupings property.
class DemoPage : ModuleListPage {
public DemoPage() : base() { }
ModuleListPageGrouping _entryTypeGrouping;
private ModuleListPageSearchField[] _searchFields;
// contains filter string and a ModuleListPageFilter
private MyModuleListPageFilter _filter;
ModuleListPageFilter _selectedFilter;
string sDate = "8-2-07";
public override ModuleListPageGrouping[] Groupings {
get {
if (_entryTypeGrouping == null ||
_inheritedGroup == null) {
// insure _entryTypeGrouping is created
_entryTypeGrouping = GetMyGrouping();
_inheritedGroup = new ListViewGroup(
"EntryTypeInherited");
_localGroup = new ListViewGroup(
"EntryTypeLocal");
}
return new ModuleListPageGrouping[] {
_entryTypeGrouping
};
}
}
ListViewGroup _inheritedGroup;
ListViewGroup _localGroup;
Remarks
This property gets the types of groupings that are available for the page. The groupings are displayed in IIS Manager in the Group by drop-down list. The Group by list specifies Area, Category, and No Grouping options for server, site and application nodes in IIS Manager.
The array of ModuleListPageGrouping objects is typically created with a set of list view controls to use with the selected grouping.