Click or drag to resize

WikiSiteExtensionsParsePageAsync(WikiSite, String, String, ParsingOptions, CancellationToken) Method

This is preliminary documentation and is subject to change.

Parsing the specific page, gets HTML and more information. (MediaWiki 1.12)

Namespace: WikiClientLibrary.Pages.Parsing
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public static Task<ParsedContentInfo> ParsePageAsync(
	this WikiSite site,
	string title,
	string? lang,
	ParsingOptions options,
	CancellationToken cancellationToken
)

Parameters

site  WikiSite
The MediaWiki site to execute the request on.
title  String
Title of the page to be parsed.
lang  String
The language (variant) used to render the content. E.g. "zh-cn", "zh-tw". specify "content" to use this wiki's content language.
options  ParsingOptions
Options for parsing.
cancellationToken  CancellationToken
The cancellation token that will be checked prior to completing the returned task.

Return Value

TaskParsedContentInfo

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type WikiSite. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptiontitle is null.
See Also