Click or drag to resize

WikiSiteOpenSearchAsync(String, Int32, OpenSearchOptions, CancellationToken) Method

This is preliminary documentation and is subject to change.

Performs an opensearch and get results, often used for search box suggestions. (MediaWiki 1.25 or OpenSearch extension)

Namespace: WikiClientLibrary.Sites
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.3+0a73c45f0c78941900e328c6c6b819597b665e00
Syntax
public Task<IList<OpenSearchResultEntry>> OpenSearchAsync(
	string searchExpression,
	int maxCount,
	OpenSearchOptions options,
	CancellationToken cancellationToken
)

Parameters

searchExpression  String
The beginning part of the title to be searched.
maxCount  Int32
Maximum number of results to return. No more than 500 (5000 for bots) allowed.
options  OpenSearchOptions
Other options.
cancellationToken  CancellationToken
The cancellation token that will be checked prior to completing the returned task.

Return Value

TaskIListOpenSearchResultEntry
Search result.
See Also