Partager via


IUpdateServer.GetComputerTargetByName Method (String)

 

Applies To: Windows Server Update Services

Get the computer target with the specified name.

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

Syntax

IComputerTarget GetComputerTargetByName(
    string name
)
IComputerTarget^ GetComputerTargetByName(
    String^ name
)
abstract GetComputerTargetByName : 
        name:string -> IComputerTarget
Function GetComputerTargetByName (
    name As String
) As IComputerTarget

Parameters

  • name
    Type: System.String

    FullDomainName of the computer target to get.

Return Value

Type: Microsoft.UpdateServices.Administration.IComputerTarget

The IComputerTarget with the specified name.

Exceptions

Exception

Condition

WsusObjectNotFoundException

A computer target with the specified name could not be found.

ArgumentNullException

id is null.

Remarks

The name parameter is case-insensitive.

See Also

IUpdateServer Interface
Microsoft.UpdateServices.Administration Namespace

Return to top