In This Topic
Terminates one or more instances of a running job
Syntax
'Declaration
Public Sub TerminateJob( _
ByVal As OID, _
Optional ByVal As TerminationOptions, _
Optional ByVal As Integer, _
Optional ByVal As OID, _
Optional ByVal As String _
)
public void TerminateJob(
OID ,
TerminationOptions ,
int ,
OID ,
string
)
public:
void TerminateJob(
OID^ ,
TerminationOptions ,
int ,
OID^ ,
String^
)
Parameters
- jobOID
- The OID of the job to terminate
- options
- Options specifying which instances are terminated
- instanceID
- The InstanceID of the instance to terminate, if you only want to terminate a specific instance.
- agentOID
- The OID of the RemoteAgent to terminate instances on
- reason
- The reason for termination. This is recorded in the Job Log for the instance(s).
See Also