| BoardNewPostAsync(String, String, IEnumerableString, PostCreationOptions) Method |
This is preliminary documentation and is subject to change.
Asynchronously adds a new reply to the post.
Namespace: WikiClientLibrary.Wikia.DiscussionsAssembly: 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
)
Public Function NewPostAsync (
postTitle As String,
postContent As String,
relatedPages As IEnumerable(Of String),
options As PostCreationOptions
) As Task(Of Post)
Dim instance As Board
Dim postTitle As String
Dim postContent As String
Dim relatedPages As IEnumerable(Of String)
Dim options As PostCreationOptions
Dim returnValue As Task(Of Post)
returnValue = instance.NewPostAsync(postTitle,
postContent, relatedPages, options)
public:
Task<Post^>^ NewPostAsync(
String^ postTitle,
String^ postContent,
IEnumerable<String^>^ relatedPages,
PostCreationOptions options
)
member NewPostAsync :
postTitle : string *
postContent : string *
relatedPages : IEnumerable<string> *
options : PostCreationOptions -> Task<Post>
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.
Return Value
TaskPostA 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