description | title | titleSuffix | ms.date | ms.subservice | ms.service | ms.topic | ms.assetid | author | ms.author | manager | ms.localizationpriority | ms.collection | ms.reviewer |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn how to cancel an in-progress download of software updates during a deployment using the CancelDownload class method. |
CancelDownload method in class CCM_SoftwareUpdatesManager |
Configuration Manager |
09/20/2016 |
sdk |
configuration-manager |
reference |
890faba7-0382-4189-adc6-8ea16a9296da |
Banreet |
banreetkaur |
apoorvseth |
low |
tier3 |
mstewart,aaroncz |
The CancelDownload
WMI class method, in Configuration Manager, cancels an in-progress download of software updates during a deployment.
The following syntax is simplified from Managed Object Format (MOF) code and defines the method.
UInt32 CancelDownload();
None.
A UInt32
data type that is 0 to indicate success or nonzero to indicate failure.
For information about handling returned errors, see About Configuration Manager Errors.
The CancelDownload
method cancels the download only for deployments that are initiated by the Software Updates Client Agent or through the Configuration Manager SDK. If the software updates deployment was initiated as the result of a deadline, the call to this method fails.
For more information, see Configuration Manager Client Runtime Requirements.
For more information, see Configuration Manager Client Development Requirements.