Share via


UpdateApprovalCollection.Add Method (IUpdateApproval)

 

Applies To: Windows Server Update Services

Adds an update approval to the end of the collection.

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

Syntax

public int Add(
    IUpdateApproval value
)
public:
int Add(
    IUpdateApproval^ value
)
member Add : 
        value:IUpdateApproval -> int
Public Function Add (
    value As IUpdateApproval
) As Integer

Parameters

Return Value

Type: System.Int32

Zero-based index at which the update approval was added to the collection.

Exceptions

Exception

Condition

ArgumentException

The update approval already exists in the collection.

ArgumentNullException

value cannot be null.

See Also

Add Overload
UpdateApprovalCollection Class
Microsoft.UpdateServices.Administration Namespace

Return to top