IComputerTargetGroup.RemoveComputerTarget(IComputerTarget)
Removes a client computer from the target group.
public void RemoveComputerTarget(
IComputerTarget target
);
Public Sub RemoveComputerTarget( _
ByVal target As IComputerTarget _
)
Implements IComputerTargetGroup.RemoveComputerTarget
Parameters
- target
An IComputerTarget of the client computer to be removed from the group. The client is moved to the Unassigned Computers group.
Return Values
This method has no return values.
Exceptions
Exception type | Condition |
---|---|
System.ArgumentNullException | target cannot be null. |
System.InvalidOperationException | Cannot delete the target group. For example, you cannot delete the All Computers or Unassigned Computers target group. |
WsusObjectNotFoundException | The target group or computer has been deleted. |
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. |