| WikiSiteInvokeMediaWikiApiAsync(WikiRequestMessage, Boolean, 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,
bool suppressAccountAssertion,
CancellationToken cancellationToken
)
Public Function InvokeMediaWikiApiAsync (
message As WikiRequestMessage,
suppressAccountAssertion As Boolean,
cancellationToken As CancellationToken
) As Task(Of JsonNode)
Dim instance As WikiSite
Dim message As WikiRequestMessage
Dim suppressAccountAssertion As Boolean
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of JsonNode)
returnValue = instance.InvokeMediaWikiApiAsync(message,
suppressAccountAssertion, cancellationToken)
public:
Task<JsonNode^>^ InvokeMediaWikiApiAsync(
WikiRequestMessage^ message,
bool suppressAccountAssertion,
CancellationToken cancellationToken
)
member InvokeMediaWikiApiAsync :
message : WikiRequestMessage *
suppressAccountAssertion : bool *
cancellationToken : CancellationToken -> Task<JsonNode>
Parameters
- message WikiRequestMessage
- The request message.
- suppressAccountAssertion Boolean
- Whether to temporarily disable account assertion as set in AccountAssertion.
- 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