Partager via


DataBoxJobResource.CancelAsync Méthode

Définition

CancelJob.

  • Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/cancel
  • IdJobs_Cancel d’opération
public virtual System.Threading.Tasks.Task<Azure.Response> CancelAsync (Azure.ResourceManager.DataBox.Models.DataBoxJobCancellationReason cancellationReason, System.Threading.CancellationToken cancellationToken = default);
abstract member CancelAsync : Azure.ResourceManager.DataBox.Models.DataBoxJobCancellationReason * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.CancelAsync : Azure.ResourceManager.DataBox.Models.DataBoxJobCancellationReason * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function CancelAsync (cancellationReason As DataBoxJobCancellationReason, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Paramètres

cancellationReason
DataBoxJobCancellationReason

Motif de l’annulation.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

cancellationReason a la valeur null.

S’applique à