ComputerTargetCollection.Add(IComputerTarget)
Adds a client computer to the end of the collection.
public Int32 Add(IComputerTargetvalue);
Public Function Add( _
ByVal value As IComputerTarget _
) As Int32
Parameters
- value
An IComputerTarget of the client computer to add to the collection.
Return Value
Zero-based index at which the client computer was added to the collection.
Exceptions
Exception type | Condition |
---|---|
System.ArgumentException | The client computer already exists in this collection. |
System.ArgumentNullException | value cannot be null. |
Remarks
To add a collection of client computers to this collection, call ComputerTargetCollection.AddRange.
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
ComputerTargetCollection.Insert
IComputerTargetGroup.GetComputerTargets()
IUpdateServer.GetComputerTarget(String)
IUpdateServer.RegisterComputer(String)