Language

ComputerTargetGroupCollection.Insert(Int32, IComputerTargetGroup)

Inserts a target group into the collection.

public void Insert(
  Int32 index,
  IComputerTargetGroup value
);
Public Sub Insert( _
  ByVal index As Int32, _
  ByVal value As IComputerTargetGroup _
)

Parameters

  • index
    Zero-based index at which to insert the target group into the collection.
  • value
    An IComputerTargetGroup of the target group to insert into the collection.

Return Values

This method has no return values.

Exceptions

Exception type Condition
System.ArgumentException The target group already exists in this collection.
System.ArgumentNullException value cannot be null.
System.ArgumentOutOfRangeException index cannot be less than zero or greater than ComputerTargetGroupCollection.Count.

Remarks

Requirements

Server Requires Windows Server 2003 or Windows 2000 Server SP4 and later.
Namespace

Defined in Microsoft.UpdateServices.Administration.

Assembly

Requires Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll).

.NET Framework

Requires .NET Framework 1.1.

See Also

ComputerTargetGroupCollection.Add