The CancelActiveDownload method, in Configuration Manager, cancels an in-progress download of software updates during a deployment.
[IDL] HRESULT CancelActiveDownload();
An HRESULT code. Possible values include, but are not limited to, the following:
- The method succeeded.
The CancelActiveDownload method cancels the download only for deployment jobs 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.
Send comments about this topic to Microsoft.