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.2+447d1d590e6726b7881f750a0a0e42908f3e417e
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