TextAuthoringProject.CreateProject 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.
Overloads
CreateProject(TextAuthoringCreateProjectDetails, CancellationToken) |
Creates a new deployment or replaces an existing one. |
CreateProject(RequestContent, RequestContext) |
[Protocol Method] Creates a new project or updates an existing one. |
CreateProject(TextAuthoringCreateProjectDetails, CancellationToken)
- Source:
- TextAuthoringProject.cs
Creates a new deployment or replaces an existing one.
public virtual Azure.Response CreateProject(Azure.AI.Language.Text.Authoring.TextAuthoringCreateProjectDetails details, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateProject : Azure.AI.Language.Text.Authoring.TextAuthoringCreateProjectDetails * System.Threading.CancellationToken -> Azure.Response
override this.CreateProject : Azure.AI.Language.Text.Authoring.TextAuthoringCreateProjectDetails * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function CreateProject (details As TextAuthoringCreateProjectDetails, Optional cancellationToken As CancellationToken = Nothing) As Response
Parameters
The new deployment info.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Applies to
CreateProject(RequestContent, RequestContext)
- Source:
- TextAuthoringProject.cs
[Protocol Method] Creates a new project or updates an existing one.
public virtual Azure.Response CreateProject(Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member CreateProject : Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
override this.CreateProject : Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
Public Overridable Function CreateProject (content As RequestContent, Optional context As RequestContext = Nothing) As 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.