| WikiSiteInvokeMediaWikiApiAsync(WikiRequestMessage, CancellationToken) Method |
This is preliminary documentation and is subject to change.
Invokes MediaWiki API and gets JSON result.
Namespace: WikiClientLibrary.SitesAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public Task<JsonNode> InvokeMediaWikiApiAsync(
WikiRequestMessage message,
CancellationToken cancellationToken
)
Public Function InvokeMediaWikiApiAsync (
message As WikiRequestMessage,
cancellationToken As CancellationToken
) As Task(Of JsonNode)
Dim instance As WikiSite
Dim message As WikiRequestMessage
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of JsonNode)
returnValue = instance.InvokeMediaWikiApiAsync(message,
cancellationToken)
public:
Task<JsonNode^>^ InvokeMediaWikiApiAsync(
WikiRequestMessage^ message,
CancellationToken cancellationToken
)
member InvokeMediaWikiApiAsync :
message : WikiRequestMessage *
cancellationToken : CancellationToken -> Task<JsonNode>
Parameters
- message WikiRequestMessage
- The request message.
- cancellationToken CancellationToken
- The cancellation token that will be checked prior to completing the returned task.
Return Value
TaskJsonNodeA task that returns the JSON response when completed.
Exceptions Remarks This overload uses
Default as response parser.
See Also