Click or drag to resize

BoardNewPostAsync(String, String, IEnumerableString, PostCreationOptions, CancellationToken) Method

This is preliminary documentation and is subject to change.

Asynchronously adds a new reply to the post.

Namespace: WikiClientLibrary.Wikia.Discussions
Assembly: WikiClientLibrary.Wikia (in WikiClientLibrary.Wikia.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public Task<Post> NewPostAsync(
	string postTitle,
	string postContent,
	IEnumerable<string> relatedPages,
	PostCreationOptions options,
	CancellationToken cancellationToken
)

Parameters

postTitle  String
Title of the new post, in wikitext format.
postContent  String
The content in reply.
relatedPages  IEnumerableString
When posting in the Forum, specifies titles of related pages (aka. topics). Can be null.
options  PostCreationOptions
The options for creating the post.
cancellationToken  CancellationToken
A token used to cancel the operation.

Return Value

TaskPost
A new post containing the ID of the new post.
Remarks

Wikia natively supports post title on Message Walls and Forum Boards. For the unification of method signature, you can set postTitle when posting article comment, but the content will be simply surrounded with <h2> HTML markup.

If you leave postTitlenull or empty when posting on Message Walls, a default title (e.g. Message from [UserName]) will be used by Wikia.

See Also