This function cancels a job with a given job url

Namespace: VcClient
Assembly: VcClient (in VcClient.dll) Version: 1.0.0.0 (1.8.400.4142)

Syntax

C#
public static void CancelJob(
	string jobUrl,
	string reason
)
Visual Basic
Public Shared Sub CancelJob ( _
	jobUrl As String, _
	reason As String _
)
Visual C++
public:
static 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

See Also