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

  • jobId
    Type: System.String

    Required. The id of the job to disable.

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