Share via


ComputerTargetGroupCollection.Insert Method (Int32, IComputerTargetGroup)

 

Applies To: Windows Server Update Services

Inserts an IComputerTargetGroup into the collection at the specified index.

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

Syntax

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

Parameters

  • index
    Type: System.Int32

    The zero-based index at which value is inserted.

Exceptions

Exception

Condition

ArgumentException

The target group already exists in this collection.

ArgumentNullException

value cannot be a null reference (Nothing in Visual Basic).

ArgumentOutOfRangeException

index cannot be less than zero or greater than the count of the collection.

See Also

Insert Overload
ComputerTargetGroupCollection Class
Microsoft.UpdateServices.Administration Namespace

Return to top