ConversationAuthoringProject.CreateProjectAsync 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
| CreateProjectAsync(ConversationAuthoringCreateProjectDetails, CancellationToken) |
Creates a new project or replaces an existing one. |
| CreateProjectAsync(RequestContent, RequestContext) |
[Protocol Method] Creates a new project or updates an existing one. |
CreateProjectAsync(ConversationAuthoringCreateProjectDetails, CancellationToken)
Creates a new project or replaces an existing one.
public virtual System.Threading.Tasks.Task<Azure.Response> CreateProjectAsync(Azure.AI.Language.Conversations.Authoring.ConversationAuthoringCreateProjectDetails details, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateProjectAsync : Azure.AI.Language.Conversations.Authoring.ConversationAuthoringCreateProjectDetails * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.CreateProjectAsync : Azure.AI.Language.Conversations.Authoring.ConversationAuthoringCreateProjectDetails * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function CreateProjectAsync (details As ConversationAuthoringCreateProjectDetails, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)
Parameters
The new deployment info.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Applies to
CreateProjectAsync(RequestContent, RequestContext)
[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.