 | BoardNewPostAsync(String, String, IEnumerableString) 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.3+0a73c45f0c78941900e328c6c6b819597b665e00
Syntaxpublic Task<Post> NewPostAsync(
string postTitle,
string postContent,
IEnumerable<string> relatedPages
)
Public Function NewPostAsync (
postTitle As String,
postContent As String,
relatedPages As IEnumerable(Of String)
) As Task(Of Post)
Dim instance As Board
Dim postTitle As String
Dim postContent As String
Dim relatedPages As IEnumerable(Of String)
Dim returnValue As Task(Of Post)
returnValue = instance.NewPostAsync(postTitle,
postContent, relatedPages)
public:
Task<Post^>^ NewPostAsync(
String^ postTitle,
String^ postContent,
IEnumerable<String^>^ relatedPages
)
member NewPostAsync :
postTitle : string *
postContent : string *
relatedPages : IEnumerable<string> -> 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.
Return Value
TaskPostA new post containing the ID of the new post.
RemarksWikia 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