CloudJobOperationsExtensions.Disable Method (ICloudJobOperations, String, CloudJobDisableParameters)
Disables the specified job, preventing new tasks from running.
Namespace: Microsoft.Azure.Batch.Protocol
Assembly: Microsoft.Azure.Batch (in Microsoft.Azure.Batch.dll)
Syntax
public static CloudJobDisableResponse Disable(
this ICloudJobOperations operations,
string jobId,
CloudJobDisableParameters parameters
)
public:
[ExtensionAttribute]
static CloudJobDisableResponse^ Disable(
ICloudJobOperations^ operations,
String^ jobId,
CloudJobDisableParameters^ parameters
)
static member Disable :
operations:ICloudJobOperations *
jobId:string *
parameters:CloudJobDisableParameters -> CloudJobDisableResponse
<ExtensionAttribute>
Public Shared Function Disable (
operations As ICloudJobOperations,
jobId As String,
parameters As CloudJobDisableParameters
) As CloudJobDisableResponse
Parameters
operations
Type: Microsoft.Azure.Batch.Protocol.ICloudJobOperationsReference to the Microsoft.Azure.Batch.Protocol.ICloudJobOperations.
jobId
Type: System.StringRequired. The id of the job to disable.
parameters
Type: Microsoft.Azure.Batch.Protocol.Models.CloudJobDisableParametersRequired. The parameters for the request.
Return Value
Type: Microsoft.Azure.Batch.Protocol.Models.CloudJobDisableResponse
Response to a CloudJobOperations.Disable request.
See Also
CloudJobOperationsExtensions Class
Microsoft.Azure.Batch.Protocol Namespace
Return to top