The IUIResourceMgr::CancelDownload method, in Configuration Manager, cancels a download request.
[IDL] HRESULT CancelDownload( BSTR sProgramId, BSTR sPackageId );
- Data type: BSTRQualifiers: [in]ID of the program for which to cancel the download request.
- Data type: BSTRQualifiers: [in]ID of the package for the program for which to cancel the request.
An HRESULT code. Possible values include, but are not limited to, the following:
- The method succeeded.
This method can only be called in the context of the user who is logged on to the client.
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.