IJobOperations.StopAsync(String, Guid, CancellationToken) Method

Definition

Stop the job identified by jobId. (see http://aka.ms/azureautomationsdk/joboperations for more information)

public System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> StopAsync (string automationAccount, Guid jobId, System.Threading.CancellationToken cancellationToken);
abstract member StopAsync : string * Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
Public Function StopAsync (automationAccount As String, jobId As Guid, cancellationToken As CancellationToken) As Task(Of AzureOperationResponse)

Parameters

automationAccount
String

The automation account name.

jobId
Guid

The job id.

cancellationToken
CancellationToken

Cancellation token.

Returns

Task<Microsoft.Azure.AzureOperationResponse>

A standard service response including an HTTP status code and request ID.

Applies to