DigitalTwinsClient.CancelImportJobAsync(String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Cancels an import job. Status codes:
- 200 Request Accepted
- 400 Bad Request
- ValidationFailed - The import job request is not valid.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.DigitalTwins.Core.ImportJob>> CancelImportJobAsync(string jobId, System.Threading.CancellationToken cancellationToken = default);
abstract member CancelImportJobAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.DigitalTwins.Core.ImportJob>>
override this.CancelImportJobAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.DigitalTwins.Core.ImportJob>>
Public Overridable Function CancelImportJobAsync (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.