IUpdateApproval.Delete Method ()

 

Applies To: Windows Server Update Services

Removes the approval from the update.

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

Syntax

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

Exceptions

Exception

Condition

InvalidOperationException

You can receive this exception because of either of the following reasons:

  • This update approval is a bundle update approval, which cannot be deleted.

  • This method is called when the server is in replica mode WSUS server (if IsReplicaServer is true).

Remarks

If the update approval being removed is for a specific target group, but the update is also approved for the All Computers group, the target group will then receive the approval for the All Computers group.

This method cannot be called when the server is in replica mode.

This operation requires WSUS Administrator privileges.

See Also

IUpdateApproval Interface
Microsoft.UpdateServices.Administration Namespace

Return to top