The ICcmAlternateDownloadProvider::CancelJob method, in Configuration Manager, cancels a job.

Note
An error should be returned if the job is not found or if cancellation failed.
HRESULT CancelJob(
			REFGUID JobID
	); 
C#

Parameters

JobID

Data type: REFGUIDQualifiers: [in]The job upon which to take action.

Return Values

An HRESULT code. Possible values include, but are not limited to, the following:

S_OK

Success implies that discovery was triggered successfully. All other return values indicate failure.

Requirements

Runtime Requirements

Development Requirements