CloudJobOperationsExtensions.TerminateAsync Method (ICloudJobOperations, String, CloudJobTerminateParameters)

 

Terminates the specified job, marking it as completed.

Namespace:   Microsoft.Azure.Batch.Protocol
Assembly:  Microsoft.Azure.Batch (in Microsoft.Azure.Batch.dll)

Syntax

public static Task<CloudJobTerminateResponse> TerminateAsync(
    this ICloudJobOperations operations,
    string jobId,
    CloudJobTerminateParameters parameters
)
public:
[ExtensionAttribute]
static Task<CloudJobTerminateResponse^>^ TerminateAsync(
    ICloudJobOperations^ operations,
    String^ jobId,
    CloudJobTerminateParameters^ parameters
)
static member TerminateAsync : 
        operations:ICloudJobOperations *
        jobId:string *
        parameters:CloudJobTerminateParameters -> Task<CloudJobTerminateResponse>
<ExtensionAttribute>
Public Shared Function TerminateAsync (
    operations As ICloudJobOperations,
    jobId As String,
    parameters As CloudJobTerminateParameters
) As Task(Of CloudJobTerminateResponse)

Parameters

  • jobId
    Type: System.String

    Required. The id of the job to terminate.

Return Value

Type: System.Threading.Tasks.Task<CloudJobTerminateResponse>

Response to a CloudJobOperations.Terminate request.

See Also

CloudJobOperationsExtensions Class
Microsoft.Azure.Batch.Protocol Namespace

Return to top