IUpdate.Decline Method ()
Applies To: Windows Server Update Services
Declines the update for deployment.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
void Decline()
void Decline()
abstract Decline : unit -> unit
Sub Decline
Exceptions
Exception
Condition
Cannot find the update to decline.
You cannot decline the update if the server is a replica WSUS server (if IsReplicaServer is true).
Remarks
If the update is currently approved, this method removes the approval from the update. To determine if an update is declined, call IsDeclined. Declining the update does not affect clients that have already received the approved update. If this is an issue, you may need to approve the update again using a different action. For example, if you approved an update to be installed on the clients and later declined the update, you should change the approval action to uninstall to remove the update from the clients.
Declining an update removes all approvals for all revisions of the update.
A bundled update represents multiple child updates. The children may be explicitly or implicitly deployable. Declining a bundled update also declines its children.
This operation requires WSUS Administrator privileges.
See Also
IUpdate Interface
Microsoft.UpdateServices.Administration Namespace
Return to top