| BoardNewTopicAsync(String, String, CancellationToken) Method |
This is preliminary documentation and is subject to change.
Creates a new topic on the current board.
Namespace: WikiClientLibrary.FlowAssembly: WikiClientLibrary.Flow (in WikiClientLibrary.Flow.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public Task<Topic> NewTopicAsync(
string topicTitle,
string topicContent,
CancellationToken cancellationToken
)
Public Function NewTopicAsync (
topicTitle As String,
topicContent As String,
cancellationToken As CancellationToken
) As Task(Of Topic)
Dim instance As Board
Dim topicTitle As String
Dim topicContent As String
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of Topic)
returnValue = instance.NewTopicAsync(topicTitle,
topicContent, cancellationToken)
public:
Task<Topic^>^ NewTopicAsync(
String^ topicTitle,
String^ topicContent,
CancellationToken cancellationToken
)
member NewTopicAsync :
topicTitle : string *
topicContent : string *
cancellationToken : CancellationToken -> Task<Topic>
Parameters
- topicTitle String
- Title of the new topic, in wikitext format.
- topicContent String
- First post content of the new topic, in wikitext format.
- cancellationToken CancellationToken
- The token used to cancel the operation.
Return Value
TaskTopic
A task that returns the newly-created topic when succeeds.
The instance only contains the workflow ID, so you may need to call
RefreshAsync if you want to query more information about it.
See Also