次の方法で共有


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)

Syntax

void CancelAllDownloads()
void CancelAllDownloads()
abstract CancelAllDownloads : unit -> unit
Sub CancelAllDownloads

Remarks

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.

See Also

IUpdateServer Interface
Microsoft.UpdateServices.Administration Namespace

Return to top