Partager via


IComputerTargetGroup.RemoveComputerTarget Method (IComputerTarget)

 

Applies To: Windows Server Update Services

Removes a client computer from the target group.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

Syntax

void RemoveComputerTarget(
    IComputerTarget target
)
void RemoveComputerTarget(
    IComputerTarget^ target
)
abstract RemoveComputerTarget : 
        target:IComputerTarget -> unit
Sub RemoveComputerTarget (
    target As IComputerTarget
)

Parameters

Exceptions

Exception

Condition

ArgumentNullException

target cannot be null.

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.

See Also

IComputerTargetGroup Interface
Microsoft.UpdateServices.Administration Namespace

Return to top