IUpdateServer.CancelAllDownloads Method ()

 

Applies To: Windows Server Update Services

Cancels current downloads for updates.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

void CancelAllDownloads()

To restart canceled downloads, call ResumeAllDownloads. To restart individual update downloads, call ResumeDownload.

Note that an update can include a download job for each language that it supports. Those download jobs that are successfully completed before you called CancelAllDownloads are retained; the others are canceled.

To determine which updates are currently downloading, call State. The update is currently downloading if the state is NotReady.

If HostBinariesOnMicrosoftUpdate is true, CancelAllDownloads cancels the downloading of the end-user license agreements.

This operation requires WSUS Administrator privileges.

Return to top
Show: