Class WikiSearchSettings
A class containing settings for use when searching with Search(string, WikiSearchSettings?).
Inherited Members
Namespace: WikiDotNet
Assembly: Wiki.Net.dll
Syntax
public sealed class WikiSearchSettings
Constructors
| Edit this page View SourceWikiSearchSettings()
Instantiates a new WikiSearchSettings instance
Declaration
public WikiSearchSettings()
Properties
| Edit this page View SourceExactMatch
Should we only find results that exactly match our search
Declaration
public bool ExactMatch { get; set; }
Property Value
Type | Description |
---|---|
bool |
Language
What wikipedia language to search from.
Default is english (en
).
Declaration
public string Language { get; set; }
Property Value
Type | Description |
---|---|
string |
Exceptions
Type | Condition |
---|---|
ArgumentException | Occurs when the given value is null or white space |
Namespaces
What namespaces to search in.
Default is none (null
).
Declaration
public List<int>? Namespaces { get; set; }
Property Value
Type | Description |
---|---|
List<int> |
RequestId
A string that will be returned with the request results.
Useful to distinguish multiple requests.
Declaration
public string? RequestId { get; set; }
Property Value
Type | Description |
---|---|
string |
ResultLimit
How many results to return.
Default is 10.
Declaration
public int ResultLimit { get; set; }
Property Value
Type | Description |
---|---|
int |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | Thrown when the given value is too high or low |
ResultOffset
An amount to offset the search results by.
Useful when scrolling through large groups of pages.
Declaration
public int ResultOffset { get; set; }
Property Value
Type | Description |
---|---|
int |