ModuleListPage.OnSearch(ModuleListPageSearchOptions) Method
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.
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.