| WikiSiteExtensionsParsePageAsync(WikiSite, Int32, 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.ParsingAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public static Task<ParsedContentInfo> ParsePageAsync(
this WikiSite site,
int id,
ParsingOptions options,
CancellationToken cancellationToken
)
<ExtensionAttribute>
Public Shared Function ParsePageAsync (
site As WikiSite,
id As Integer,
options As ParsingOptions,
cancellationToken As CancellationToken
) As Task(Of ParsedContentInfo)
Dim site As WikiSite
Dim id As Integer
Dim options As ParsingOptions
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of ParsedContentInfo)
returnValue = site.ParsePageAsync(id,
options, cancellationToken)
public:
[ExtensionAttribute]
static Task<ParsedContentInfo^>^ ParsePageAsync(
WikiSite^ site,
int id,
ParsingOptions options,
CancellationToken cancellationToken
)
[<ExtensionAttribute>]
static member ParsePageAsync :
site : WikiSite *
id : int *
options : ParsingOptions *
cancellationToken : CancellationToken -> Task<ParsedContentInfo>
Parameters
- site WikiSite
- The MediaWiki site to execute the request on.
- id Int32
[Missing <param name="id"/> documentation for "M:WikiClientLibrary.Pages.Parsing.WikiSiteExtensions.ParsePageAsync(WikiClientLibrary.Sites.WikiSite,System.Int32,WikiClientLibrary.Pages.Parsing.ParsingOptions,System.Threading.CancellationToken)"]
- options ParsingOptions
- Options for parsing.
- cancellationToken CancellationToken
- The cancellation token that will be checked prior to completing the returned task.
Return Value
TaskParsedContentInfoUsage 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 See Also