ModuleListPage.Groupings プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ページのグループ化を取得します。
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()
プロパティ値
ページのオブジェクトの ModuleListPageGrouping 配列。
例
次の例では、 プロパティを Groupings オーバーライドします。
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;
注釈
このプロパティは、ページで使用できるグループの種類を取得します。 グループ化は、IIS マネージャーの [ グループ化 ] ドロップダウン リストに表示されます。 [ グループ化] ボックスの一覧では、IIS マネージャーのサーバー、サイト、およびアプリケーション ノードの [区分]、[ カテゴリ]、[ グループ化なし ] オプションを指定します。
オブジェクトの ModuleListPageGrouping 配列は、通常、選択したグループ化で使用するリスト ビュー コントロールのセットを使用して作成されます。