DotNetWikiBot Framework Documentation
Gets page titles for this PageList from results of specified custom API query. Not all queries are supported and can be parsed automatically. The function does not clear the existing PageList, so new titles will be added to existing.

Namespace: DotNetWikiBot
Assembly: DotNetWikiBot (in DotNetWikiBot.dll) Version: 0.0.0.0

Syntax

C#
public void FillFromCustomApiQuery(
	string query,
	string queryParams,
	int limit
)

Parameters

query
Type: System..::..String
Type of query, e.g. "list=allusers" or "list=allpages".
queryParams
Type: System..::..String
Additional query parameters, specific to the query, e.g. "cmtitle=Category:Physical%20sciences&cmnamespace=0|2". Parameter values must be URL-encoded with Bot.UrlEncode() function before calling this function.
limit
Type: System..::..Int32
Maximum number of resultant strings to fetch.

Examples

 Copy imageCopy
pageList.FillFromCustomApiQuery("list=categorymembers",
    "cmcategory=Physical%20sciences&cmnamespace=0|14",
    int.MaxValue);

See Also