If job is running method marks job as canceled and Also sets
EndTime to Now.
If status is queued - deletes it from the list.
For other status it throws an exception.
Namespace: VcClient.TestAssembly: VcClient (in VcClient.dll) Version: 1.0.0.0 (1.8.400.4142)
Syntax
C# |
---|
public virtual void CancelJob(
string jobUrl,
string reason
) |
Visual Basic |
---|
Public Overridable Sub CancelJob ( _
jobUrl As String, _
reason As String _
) |
Visual C++ |
---|
public:
virtual void CancelJob(
String^ jobUrl,
String^ reason
) |
Parameters
- jobUrl
- Type: String
Global name of the job to be cancelled.
E.g. http://cosmos08.osdinfra.net/cosmos/cosmosAdmin/_jobs/xxxx-xxxx-xxxx-xxxx
- reason
- Type: String
The reason for cancelling the job
Exceptions
See Also