DiscoveryTasksClient.GetAsync Method

Definition

Overloads

Name Description
GetAsync(String, String, String, RequestContext)

[Protocol Method] Get a task by ID.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetAsync(String, String, String, CancellationToken)

Get a task by ID.

GetAsync(String, String, String, RequestContext)

Source:
DiscoveryTasksClient.cs

[Protocol Method] Get a task by ID.

  • 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> GetAsync(string projectName, string investigationName, string taskName, Azure.RequestContext context);
abstract member GetAsync : string * string * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetAsync : string * string * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetAsync (projectName As String, investigationName As String, taskName As String, context As RequestContext) As Task(Of Response)

Parameters

projectName
String

The project name.

investigationName
String

The investigation name.

taskName
String

The unique identifier of the task.

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

GetAsync(String, String, String, CancellationToken)

Source:
DiscoveryTasksClient.cs

Get a task by ID.

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

Parameters

projectName
String

The project name.

investigationName
String

The investigation name.

taskName
String

The unique identifier of the task.

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