CloudJobOperationsExtensions.Terminate 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 CloudJobTerminateResponse Terminate(
this ICloudJobOperations operations,
string jobId,
CloudJobTerminateParameters parameters
)
public:
[ExtensionAttribute]
static CloudJobTerminateResponse^ Terminate(
ICloudJobOperations^ operations,
String^ jobId,
CloudJobTerminateParameters^ parameters
)
static member Terminate :
operations:ICloudJobOperations *
jobId:string *
parameters:CloudJobTerminateParameters -> CloudJobTerminateResponse
<ExtensionAttribute>
Public Shared Function Terminate (
operations As ICloudJobOperations,
jobId As String,
parameters As CloudJobTerminateParameters
) As 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: Microsoft.Azure.Batch.Protocol.Models.CloudJobTerminateResponse
Response to a CloudJobOperations.Terminate request.
See Also
CloudJobOperationsExtensions Class
Microsoft.Azure.Batch.Protocol Namespace
Return to top