DiscoveryTasksClient.Start Method

Definition

Overloads

Name Description
Start(String, String, String, StartTaskRequest, CancellationToken)

Start execution of a task.

Start(String, String, String, RequestContent, RequestContext)

[Protocol Method] Start execution of a task.

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

Start(String, String, String, StartTaskRequest, CancellationToken)

Source:
DiscoveryTasksClient.cs

Start execution of a task.

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

Parameters

projectName
String

The project name.

investigationName
String

The investigation name.

taskName
String

The task name.

body
StartTaskRequest

Start task request body.

cancellationToken
CancellationToken

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

Returns

Exceptions

projectName, investigationName or taskName is null.

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

Service returned a non-success status code.

Applies to

Start(String, String, String, RequestContent, RequestContext)

Source:
DiscoveryTasksClient.cs

[Protocol Method] Start execution of a task.

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

Parameters

projectName
String

The project name.

investigationName
String

The investigation name.

taskName
String

The task 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 taskName is null.

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

Service returned a non-success status code.

Applies to