Partager via


AutomaticUpdateApprovalRuleCollection.Add Method (IAutomaticUpdateApprovalRule)

 

Applies To: Windows Server Update Services

Adds an IAutomaticUpdateApprovalRule to the end of the AutomaticUpdateApprovalRuleCollection.

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

Syntax

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

Parameters

Return Value

Type: System.Int32

The zero-based index at which the new element is indexed.

Exceptions

Exception

Condition

ArgumentNullException

value is a null reference (Nothing in Visual Basic).

ArgumentException

value already exists in the collection.

See Also

Add Overload
AutomaticUpdateApprovalRuleCollection Class
Microsoft.UpdateServices.Administration Namespace

Return to top