DiscoveryTasksClient.CreateAsync Method

Definition

Overloads

Name Description
CreateAsync(String, String, DiscoveryTask, CancellationToken)

Create a new task.

CreateAsync(String, String, RequestContent, RequestContext)

[Protocol Method] Create a new task.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.

CreateAsync(String, String, DiscoveryTask, CancellationToken)

Source:
DiscoveryTasksClient.cs

Create a new task.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Discovery.DiscoveryTask>> CreateAsync(string projectName, string investigationName, Azure.AI.Discovery.DiscoveryTask body, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateAsync : string * string * Azure.AI.Discovery.DiscoveryTask * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Discovery.DiscoveryTask>>
override this.CreateAsync : string * string * Azure.AI.Discovery.DiscoveryTask * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Discovery.DiscoveryTask>>
Public Overridable Function CreateAsync (projectName As String, investigationName As String, body As DiscoveryTask, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DiscoveryTask))

Parameters

projectName
String

The project name.

investigationName
String

The investigation name.

body
DiscoveryTask

Task creation request.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

Exceptions

projectName, investigationName or body is null.

projectName or investigationName is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

CreateAsync(String, String, RequestContent, RequestContext)

Source:
DiscoveryTasksClient.cs

[Protocol Method] Create a new task.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<Azure.Response> CreateAsync(string projectName, string investigationName, Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member CreateAsync : string * string * Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.CreateAsync : string * string * Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function CreateAsync (projectName As String, investigationName As String, content As RequestContent, Optional context As RequestContext = Nothing) As Task(Of Response)

Parameters

projectName
String

The project name.

investigationName
String

The investigation name.

content
RequestContent

The content to send as the body of the request.

context
RequestContext

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

Returns

The response returned from the service.

Exceptions

projectName, investigationName or content is null.

projectName or investigationName is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to