| WikiSiteGetTokenAsync(String, Boolean, CancellationToken) Method |
This is preliminary documentation and is subject to change.
Request a token for operation.
Namespace: WikiClientLibrary.SitesAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public Task<string> GetTokenAsync(
string tokenType,
bool forceRefetch,
CancellationToken cancellationToken
)
Public Function GetTokenAsync (
tokenType As String,
forceRefetch As Boolean,
cancellationToken As CancellationToken
) As Task(Of String)
Dim instance As WikiSite
Dim tokenType As String
Dim forceRefetch As Boolean
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of String)
returnValue = instance.GetTokenAsync(tokenType,
forceRefetch, cancellationToken)
public:
Task<String^>^ GetTokenAsync(
String^ tokenType,
bool forceRefetch,
CancellationToken cancellationToken
)
member GetTokenAsync :
tokenType : string *
forceRefetch : bool *
cancellationToken : CancellationToken -> Task<string>
Parameters
- tokenType String
- The name of token.
- forceRefetch Boolean
- Whether to fetch token from server, regardless of the cache.
- cancellationToken CancellationToken
[Missing <param name="cancellationToken"/> documentation for "M:WikiClientLibrary.Sites.WikiSite.GetTokenAsync(System.String,System.Boolean,System.Threading.CancellationToken)"]
Return Value
TaskStringExceptions Remarks See https://www.mediawiki.org/wiki/API:Tokens .
See Also