Compartilhar via


JobClient.GetJobAsync Método

Definição

Sobrecargas

GetJobAsync(String)

Obtém o trabalho com a ID especificada.

GetJobAsync(String, CancellationToken)

Obtém o trabalho com a ID especificada.

GetJobAsync(String)

Obtém o trabalho com a ID especificada.

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

Parâmetros

jobId
String

ID do trabalho a ser recuperado

Retornos

O objeto JobResponse correspondente

Aplica-se a

GetJobAsync(String, CancellationToken)

Obtém o trabalho com a ID especificada.

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

Parâmetros

jobId
String

ID do trabalho a ser recuperado

cancellationToken
CancellationToken

Token de cancelamento de tarefa

Retornos

O objeto JobResponse correspondente

Aplica-se a