| WikiSiteGetMessagesAsync(IEnumerableString, CancellationToken) Method |
This is preliminary documentation and is subject to change.
Get the content of some or all MediaWiki interface messages.
Namespace: WikiClientLibrary.SitesAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public Task<IDictionary<string, string>> GetMessagesAsync(
IEnumerable<string> messages,
CancellationToken cancellationToken
)
Public Function GetMessagesAsync (
messages As IEnumerable(Of String),
cancellationToken As CancellationToken
) As Task(Of IDictionary(Of String, String))
Dim instance As WikiSite
Dim messages As IEnumerable(Of String)
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of IDictionary(Of String, String))
returnValue = instance.GetMessagesAsync(messages,
cancellationToken)
public:
Task<IDictionary<String^, String^>^>^ GetMessagesAsync(
IEnumerable<String^>^ messages,
CancellationToken cancellationToken
)
member GetMessagesAsync :
messages : IEnumerable<string> *
cancellationToken : CancellationToken -> Task<IDictionary<string, string>>
Parameters
- messages IEnumerableString
- A sequence of message names.
- cancellationToken CancellationToken
- The cancellation token that will be checked prior to completing the returned task.
Return Value
TaskIDictionaryString,
String
A dictionary of message name - message content pairs.
If some messages cannot be found, the corresponding value will be
null.
Exceptions See Also