DiscoveryToolsClient.CancelRunLro 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
| Name | Description |
|---|---|
| CancelRunLro(WaitUntil, String, String, RequestContext) |
Cancel an ongoing tool run. |
| CancelRunLro(WaitUntil, String, String, CancellationToken) |
Cancel an ongoing tool run. |
CancelRunLro(WaitUntil, String, String, RequestContext)
- Source:
- DiscoveryToolsClient.cs
Cancel an ongoing tool run.
public virtual Azure.Operation<BinaryData> CancelRunLro(Azure.WaitUntil waitUntil, string projectName, string operationId, Azure.RequestContext context);
abstract member CancelRunLro : Azure.WaitUntil * string * string * Azure.RequestContext -> Azure.Operation<BinaryData>
override this.CancelRunLro : Azure.WaitUntil * string * string * Azure.RequestContext -> Azure.Operation<BinaryData>
Public Overridable Function CancelRunLro (waitUntil As WaitUntil, projectName As String, operationId As String, context As RequestContext) As 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
CancelRunLro(WaitUntil, String, String, CancellationToken)
- Source:
- DiscoveryToolsClient.cs
Cancel an ongoing tool run.
public virtual Azure.Operation<Azure.AI.Discovery.RunResult> CancelRunLro(Azure.WaitUntil waitUntil, string projectName, string operationId, System.Threading.CancellationToken cancellationToken = default);
abstract member CancelRunLro : Azure.WaitUntil * string * string * System.Threading.CancellationToken -> Azure.Operation<Azure.AI.Discovery.RunResult>
override this.CancelRunLro : Azure.WaitUntil * string * string * System.Threading.CancellationToken -> Azure.Operation<Azure.AI.Discovery.RunResult>
Public Overridable Function CancelRunLro (waitUntil As WaitUntil, projectName As String, operationId As String, Optional cancellationToken As CancellationToken = Nothing) As 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.