Share via


IComputerTargetGroup.AddComputerTarget(IComputerTarget)

Adds a client computer to the target group.

public void AddComputerTarget(IComputerTargettarget);
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 Value

This method does not return a value.

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