AutomaticUpdateApprovalRuleCollection.Insert Method (Int32, IAutomaticUpdateApprovalRule)

 

Applies To: Windows Server Update Services

Inserts an IAutomaticUpdateApprovalRule into the AutomaticUpdateApprovalRuleCollection at the specified index.

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

Syntax

public void Insert(
    int index,
    IAutomaticUpdateApprovalRule value
)
public:
void Insert(
    int index,
    IAutomaticUpdateApprovalRule^ value
)
member Insert : 
        index:int *
        value:IAutomaticUpdateApprovalRule -> unit
Public Sub Insert (
    index As Integer,
    value As IAutomaticUpdateApprovalRule
)

Parameters

  • index
    Type: System.Int32

    The zero-based index at which value is inserted.

Exceptions

Exception

Condition

ArgumentNullException

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

ArgumentOutOfRangeException

index is less than zero

-or-

index is equal or greater than the number of elements in the collection.

ArgumentException

value already exists in the collection.

See Also

Insert Overload
AutomaticUpdateApprovalRuleCollection Class
Microsoft.UpdateServices.Administration Namespace

Return to top