| WikiSiteGetMessageAsync(String, CancellationToken) Method |
This is preliminary documentation and is subject to change.
Get the content of MediaWiki interface message.
Namespace: WikiClientLibrary.SitesAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public Task<string?> GetMessageAsync(
string message,
CancellationToken cancellationToken
)
Public Function GetMessageAsync (
message As String,
cancellationToken As CancellationToken
) As Task(Of String)
Dim instance As WikiSite
Dim message As String
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of String)
returnValue = instance.GetMessageAsync(message,
cancellationToken)
public:
Task<String^>^ GetMessageAsync(
String^ message,
CancellationToken cancellationToken
)
member GetMessageAsync :
message : string *
cancellationToken : CancellationToken -> Task<string>
Parameters
- message String
- The message name.
- cancellationToken CancellationToken
- The cancellation token that will be checked prior to completing the returned task.
Return Value
TaskString
The message content. OR
null if the messages cannot be found.
Exceptions See Also