Partilhar via


JobClient.CancelJobAsync Método

Definição

Sobrecargas

CancelJobAsync(String)

Cancela/Exclui o trabalho com a ID especificada.

CancelJobAsync(String, CancellationToken)

Cancela/Exclui o trabalho com a ID especificada.

CancelJobAsync(String)

Cancela/Exclui o trabalho com a ID especificada.

public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.JobResponse> CancelJobAsync (string jobId);
abstract member CancelJobAsync : string -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.JobResponse>
override this.CancelJobAsync : string -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.JobResponse>
Public Overridable Function CancelJobAsync (jobId As String) As Task(Of JobResponse)

Parâmetros

jobId
String

ID do trabalho a ser cancelado

Retornos

Aplica-se a

CancelJobAsync(String, CancellationToken)

Cancela/Exclui o trabalho com a ID especificada.

public virtual System.Threading.Tasks.Task<Microsoft.Azure.Devices.JobResponse> CancelJobAsync (string jobId, System.Threading.CancellationToken cancellationToken);
abstract member CancelJobAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.JobResponse>
override this.CancelJobAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.JobResponse>
Public Overridable Function CancelJobAsync (jobId As String, cancellationToken As CancellationToken) As Task(Of JobResponse)

Parâmetros

jobId
String

ID do trabalho a ser cancelado

cancellationToken
CancellationToken

Token de cancelamento de tarefa

Retornos

Aplica-se a