Class WikiSearcher
Allows the ability to search Wikipedia using a search query
Inherited Members
Namespace: WikiDotNet
Assembly: Wiki.Net.dll
Syntax
public class WikiSearcher
Constructors
| Edit this page View SourceWikiSearcher(HttpClient?)
Creates a new WikiSearcher instance
Declaration
public WikiSearcher(HttpClient? httpClient = null)
Parameters
Type | Name | Description |
---|---|---|
HttpClient | httpClient | Set if you have a global HttpClient to use |
Methods
| Edit this page View SourceSearch(string, WikiSearchSettings?)
Searches Wikipedia using the given searchString
Declaration
public WikiSearchResponse Search(string searchString, WikiSearchSettings? searchSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | searchString | The string to search for |
WikiSearchSettings | searchSettings | An optional set of settings to |
Returns
Type | Description |
---|---|
WikiSearchResponse | A list of search results obtained from the Wikipedia API |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | Thrown if |