Udostępnij za pośrednictwem


IJobOperations.SuspendAsync(String, Guid, CancellationToken) Method

Definition

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

public System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> SuspendAsync (string automationAccount, Guid jobId, System.Threading.CancellationToken cancellationToken);
abstract member SuspendAsync : string * Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
Public Function SuspendAsync (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