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.Int32The zero-based index at which value is inserted.
value
Type: Microsoft.UpdateServices.Administration.IComputerTargetGroupThe IComputerTargetGroup to insert.
Exceptions
Exception
Condition
The target group already exists in this collection.
value cannot be a null reference (Nothing in Visual Basic).
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