ICloudJobOperations.DisableAsync Method (String, CloudJobDisableParameters, CancellationToken)
Disables the specified job, preventing new tasks from running.
Namespace: Microsoft.Azure.Batch.Protocol
Assembly: Microsoft.Azure.Batch (in Microsoft.Azure.Batch.dll)
Syntax
Task<CloudJobDisableResponse> DisableAsync(
string jobId,
CloudJobDisableParameters parameters,
CancellationToken cancellationToken
)
Task<CloudJobDisableResponse^>^ DisableAsync(
String^ jobId,
CloudJobDisableParameters^ parameters,
CancellationToken cancellationToken
)
abstract DisableAsync :
jobId:string *
parameters:CloudJobDisableParameters *
cancellationToken:CancellationToken -> Task<CloudJobDisableResponse>
Function DisableAsync (
jobId As String,
parameters As CloudJobDisableParameters,
cancellationToken As CancellationToken
) As Task(Of CloudJobDisableResponse)
Parameters
jobId
Type: System.StringThe id of the job to disable.
parameters
Type: Microsoft.Azure.Batch.Protocol.Models.CloudJobDisableParametersThe parameters for the request.
cancellationToken
Type: System.Threading.CancellationTokenCancellation token.
Return Value
Type: System.Threading.Tasks.Task<CloudJobDisableResponse>
Response to a CloudJobOperations.Disable request.
See Also
ICloudJobOperations Interface
Microsoft.Azure.Batch.Protocol Namespace
Return to top