Share via


ModuleListPage.OnSearch(ModuleListPageSearchOptions) Method

Definition

When overridden in a derived class, performs a search.

protected:
 virtual void OnSearch(Microsoft::Web::Management::Client::ModuleListPageSearchOptions ^ options);
protected virtual void OnSearch (Microsoft.Web.Management.Client.ModuleListPageSearchOptions options);
abstract member OnSearch : Microsoft.Web.Management.Client.ModuleListPageSearchOptions -> unit
override this.OnSearch : Microsoft.Web.Management.Client.ModuleListPageSearchOptions -> unit
Protected Overridable Sub OnSearch (options As ModuleListPageSearchOptions)

Parameters

options
ModuleListPageSearchOptions

The search options.

Examples

The following example uses the options parameter to set the page search criteria.

protected override void OnSearch(
    ModuleListPageSearchOptions options) {

    if (options.ShowAll) {
        _searchText = null;
    } else {
        _searchField = options.Field.Name;
        _searchText = options.Text.ToLowerInvariant();
    }

    ReloadPage();
}

Remarks

The base class throws a System.InvalidOperationException exception.

Applies to