Share via


TextAuthoringProject.CreateProjectAsync Method

Definition

Overloads

Name Description
CreateProjectAsync(RequestContent, RequestContext)

[Protocol Method] Creates a new project or updates an existing one.

CreateProjectAsync(TextAuthoringCreateProjectDetails, CancellationToken)

Creates a new deployment or replaces an existing one.

CreateProjectAsync(RequestContent, RequestContext)

Source:
TextAuthoringProject.cs

[Protocol Method] Creates a new project or updates an existing one.

public virtual System.Threading.Tasks.Task<Azure.Response> CreateProjectAsync(Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member CreateProjectAsync : Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.CreateProjectAsync : Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function CreateProjectAsync (content As RequestContent, Optional context As RequestContext = Nothing) As Task(Of Response)

Parameters

content
RequestContent

The content to send as the body of the request.

context
RequestContext

The request context, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

content is null.

Service returned a non-success status code.

Applies to

CreateProjectAsync(TextAuthoringCreateProjectDetails, CancellationToken)

Source:
TextAuthoringProject.cs

Creates a new deployment or replaces an existing one.

public virtual System.Threading.Tasks.Task<Azure.Response> CreateProjectAsync(Azure.AI.Language.Text.Authoring.TextAuthoringCreateProjectDetails details, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateProjectAsync : Azure.AI.Language.Text.Authoring.TextAuthoringCreateProjectDetails * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.CreateProjectAsync : Azure.AI.Language.Text.Authoring.TextAuthoringCreateProjectDetails * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function CreateProjectAsync (details As TextAuthoringCreateProjectDetails, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

details
TextAuthoringCreateProjectDetails

The new deployment info.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to