Click or drag to resize

WikiSiteGetMessageAsync(String, CancellationToken) Method

This is preliminary documentation and is subject to change.

Get the content of MediaWiki interface message.

Namespace: WikiClientLibrary.Sites
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.3+0a73c45f0c78941900e328c6c6b819597b665e00
Syntax
public Task<string?> GetMessageAsync(
	string message,
	CancellationToken cancellationToken
)

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
ExceptionCondition
ArgumentExceptionmessage contains pipe character (|).
InvalidOperationException Trying to fetch all the messages with "*" input.
See Also