CancelDownload Method in Class CCM_SoftwareUpdatesManager
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.
Syntax
UInt32 CancelDownload();
Parameters
None.
Return Values
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.
Remarks
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.
Requirements
Runtime Requirements
For more information, see Configuration Manager Client Runtime Requirements.
Development Requirements
For more information, see Configuration Manager Client Development Requirements.
See Also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for