WordPressClient.CreateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create post
public virtual System.Threading.Tasks.Task<Azure.Connectors.Sdk.WordPress.Models.PostModel> CreateAsync(string siteId, Azure.Connectors.Sdk.WordPress.Models.CreatePostModel input, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateAsync : string * Azure.Connectors.Sdk.WordPress.Models.CreatePostModel * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.WordPress.Models.PostModel>
override this.CreateAsync : string * Azure.Connectors.Sdk.WordPress.Models.CreatePostModel * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.WordPress.Models.PostModel>
Public Overridable Function CreateAsync (siteId As String, input As CreatePostModel, Optional cancellationToken As CancellationToken = Nothing) As Task(Of PostModel)
Parameters
- siteId
- String
Site ID
- input
- CreatePostModel
The request body.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
The Create post response.
Remarks
Create post