ModuleListPage.EmptyGrouping Field
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.
A ModuleListPageGrouping object that signifies no grouping.
protected: static initonly Microsoft::Web::Management::Client::ModuleListPageGrouping ^ EmptyGrouping;
protected static readonly Microsoft.Web.Management.Client.ModuleListPageGrouping EmptyGrouping;
staticval mutable EmptyGrouping : Microsoft.Web.Management.Client.ModuleListPageGrouping
Protected Shared ReadOnly EmptyGrouping As ModuleListPageGrouping
Field Value
Examples
The following example checks the value of the SelectedGrouping property before calling the Group method.
private void updateGrouping(bool clearItems) {
ListView.BeginUpdate();
try {
if (clearItems)
ListView.Items.Clear();
if (SelectedGrouping != null &&
SelectedGrouping != EmptyGrouping)
Group(SelectedGrouping);
} finally {
ListView.EndUpdate();
Update();
}
}