'Declaration
Public Sub TerminateJob( _ ByVal jobOID As OID, _ Optional ByVal options As TerminationOptions, _ Optional ByVal instanceID As Integer, _ Optional ByVal agentOID As OID, _ Optional ByVal reason As String _ )
public void TerminateJob( OID jobOID, TerminationOptions options, int instanceID, OID agentOID, string reason )
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).