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
operations
Type: Microsoft.Azure.Batch.Protocol.ICloudJobOperationsReference to the Microsoft.Azure.Batch.Protocol.ICloudJobOperations.
jobId
Type: System.StringRequired. The id of the job to terminate.
parameters
Type: Microsoft.Azure.Batch.Protocol.Models.CloudJobTerminateParametersRequired. The parameters for the request.
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