DiscoveryToolsClient.CancelRunLroAsync Method

Definition

Overloads

CancelRunLroAsync(WaitUntil, String, String, RequestContext)

Source:
DiscoveryToolsClient.cs

Cancel an ongoing tool run.

public virtual System.Threading.Tasks.Task<Azure.Operation<BinaryData>> CancelRunLroAsync(Azure.WaitUntil waitUntil, string projectName, string operationId, Azure.RequestContext context);
abstract member CancelRunLroAsync : Azure.WaitUntil * string * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Operation<BinaryData>>
override this.CancelRunLroAsync : Azure.WaitUntil * string * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Operation<BinaryData>>
Public Overridable Function CancelRunLroAsync (waitUntil As WaitUntil, projectName As String, operationId As String, context As RequestContext) As Task(Of Operation(Of BinaryData))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

projectName
String

Name of the associated Project.

operationId
String

ID of the operation to cancel.

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 or operationId is null.

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

Applies to

CancelRunLroAsync(WaitUntil, String, String, CancellationToken)

Source:
DiscoveryToolsClient.cs

Cancel an ongoing tool run.

public virtual System.Threading.Tasks.Task<Azure.Operation<Azure.AI.Discovery.RunResult>> CancelRunLroAsync(Azure.WaitUntil waitUntil, string projectName, string operationId, System.Threading.CancellationToken cancellationToken = default);
abstract member CancelRunLroAsync : Azure.WaitUntil * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Operation<Azure.AI.Discovery.RunResult>>
override this.CancelRunLroAsync : Azure.WaitUntil * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Operation<Azure.AI.Discovery.RunResult>>
Public Overridable Function CancelRunLroAsync (waitUntil As WaitUntil, projectName As String, operationId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Operation(Of RunResult))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

projectName
String

Name of the associated Project.

operationId
String

ID of the operation to cancel.

cancellationToken
CancellationToken

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

Returns

Exceptions

projectName or operationId is null.

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

Applies to