Delen via


JobsOperationsExtensions.CancelAsync Method

Definition

CancelJob.

public static System.Threading.Tasks.Task CancelAsync (this Microsoft.Azure.Management.DataBox.IJobsOperations operations, string resourceGroupName, string jobName, string reason, System.Threading.CancellationToken cancellationToken = default);
static member CancelAsync : Microsoft.Azure.Management.DataBox.IJobsOperations * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function CancelAsync (operations As IJobsOperations, resourceGroupName As String, jobName As String, reason As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

operations
IJobsOperations

The operations group for this extension method.

resourceGroupName
String

The Resource Group Name

jobName
String

The name of the job Resource within the specified resource group. job names must be between 3 and 24 characters in length and use any alphanumeric and underscore only

reason
String

Reason for cancellation.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to