Partilhar via


JobRouterClient.DeleteWorkerAsync(String, CancellationToken) Método

Definição

Exclui um trabalho existente por ID.

public virtual System.Threading.Tasks.Task<Azure.Response> DeleteWorkerAsync (string workerId, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteWorkerAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.DeleteWorkerAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DeleteWorkerAsync (workerId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parâmetros

workerId
String

A ID do Trabalhador.

cancellationToken
CancellationToken

(Opcional) O token de cancelamento a ser usado.

Retornos

Exceções

workerId é nulo.

O servidor retornou um erro. Consulte Message para obter detalhes retornados do servidor.

Aplica-se a