Share via


ModuleListPage.SearchFields Property

Definition

Gets the searchable columns for the list view.

protected:
 virtual property cli::array <Microsoft::Web::Management::Client::ModuleListPageSearchField ^> ^ SearchFields { cli::array <Microsoft::Web::Management::Client::ModuleListPageSearchField ^> ^ get(); };
protected virtual Microsoft.Web.Management.Client.ModuleListPageSearchField[] SearchFields { get; }
member this.SearchFields : Microsoft.Web.Management.Client.ModuleListPageSearchField[]
Protected Overridable ReadOnly Property SearchFields As ModuleListPageSearchField()

Property Value

The ModuleListPageSearchField objects for the list view.

Examples

The following example adds two search filters.


  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";

protected override ModuleListPageSearchField[] 
    SearchFields {
    get {
        if (_searchFields != null)
            return _searchFields;

        _searchFields =
            new ModuleListPageSearchField[] {
                new ModuleListPageSearchField(
                "Color", "Colour"),
                new ModuleListPageSearchField(
                "Type 1", "Type 2")
            };
        return _searchFields;
    }
} 

Remarks

The SearchFields property enables you to filter search results by column in a list view. In IIS Manager, the search fields appear in the Go drop-down box on the Filter toolbar. When you type search text in the Filter box, you can further narrow the results by selecting one of the fields in the Go drop-down box. For example, on the Web Applications page in IIS Manager, the following search fields appear in the Go drop-down box: Virtual Path, Physical Path, Site, and Application Pool. These fields correspond to the four columns in Features View, and they enable you to narrow your search results to the selected column.

Applies to