IUpdate.CancelDownload()
Stops downloading the update and its dependencies to the WSUS server.
public void CancelDownload();
Public Sub CancelDownload()
Implements IUpdate.CancelDownload
Parameters
This method has no parameters.
Return Value
This method does not return a value.
Remarks
This method cancels the download only if the state of the update is UpdateState.NotReady.
If more than one update shares a dependency that is downloading, canceling one of the updates will cancel the other updates that share the dependency.
Note that an update can include a download job for each language it supports. Those download jobs that successfully completed before you called CancelDownload are retained; the others are canceled.
To determine if the update is currently downloading, call IUpdate.State. The update is currently downloading if the state is UpdateState.NotReady.
If IUpdateServerConfiguration.HostBinariesOnMicrosoftUpdate is true, CancelDownload cancels the downloading of the end-user license agreements.
To restart canceled downloads, call IUpdate.ResumeDownload. To restart all update downloads, call IUpdateServer.ResumeAllDownloads.
Requirements
Server | Requires Windows Server 2003 or Windows 2000 Server SP4 and later. |
Namespace | Defined in Microsoft.UpdateServices.Administration. |
Assembly | Requires Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll). |
.NET Framework | Requires .NET Framework 1.1. |