Поделиться через


DigitalTwinsClient.GetImportJobAsync(String, CancellationToken) Method

Definition

Retrieves an import job. Status codes:

  • 200 OK
  • 404 Not Found
    • ImportJobNotFound - The import job was not found.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.DigitalTwins.Core.ImportJob>> GetImportJobAsync(string jobId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetImportJobAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.DigitalTwins.Core.ImportJob>>
override this.GetImportJobAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.DigitalTwins.Core.ImportJob>>
Public Overridable Function GetImportJobAsync (jobId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ImportJob))

Parameters

jobId
String

The id for the import job. The id is unique within the service and case sensitive.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

jobId is null.

Applies to