Share via


IComputerTargetGroup.AddComputerTarget(IComputerTarget)

Adds a client computer to the target group.

public void AddComputerTarget(
  IComputerTarget target
);
Public Sub AddComputerTarget( _
  ByVal target As IComputerTarget _
)
Implements IComputerTargetGroup.AddComputerTarget

Parameters

  • target
    An IComputerTarget of the client computer to add to the target group.

Return Values

This method has no return values.

Exceptions

Exception type Condition
ArgumentNullException target cannot be null.

Remarks

The client computer is moved from its current group to this group. If the client is currently not explicitly assigned to a group, the client is moved from the Unassigned Computers group to this group.

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

IComputerTargetGroup.RemoveComputerTarget