다음을 통해 공유


AgentReservationWebService.ReserveAgent Method

Reserves an agent for use by a build that matches the input name specification and required tags.

Namespace:  Microsoft.TeamFoundation.Build.Server.Compatibility
Assembly:  Microsoft.TeamFoundation.Build.Server (in Microsoft.TeamFoundation.Build.Server.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Function ReserveAgent ( _
    buildUri As String, _
    name As String, _
    requiredTags As List(Of String), _
    tagComparison As TagComparison2010 _
) As AgentReservation2010
[WebMethodAttribute]
public AgentReservation2010 ReserveAgent(
    string buildUri,
    string name,
    List<string> requiredTags,
    TagComparison2010 tagComparison
)
[WebMethodAttribute]
public:
AgentReservation2010^ ReserveAgent(
    String^ buildUri, 
    String^ name, 
    List<String^>^ requiredTags, 
    TagComparison2010 tagComparison
)
[<WebMethodAttribute>]
member ReserveAgent : 
        buildUri:string * 
        name:string * 
        requiredTags:List<string> * 
        tagComparison:TagComparison2010 -> AgentReservation2010
public function ReserveAgent(
    buildUri : String, 
    name : String, 
    requiredTags : List<String>, 
    tagComparison : TagComparison2010
) : AgentReservation2010

Parameters

  • buildUri
    Type: System.String

    The build that is making the reservation.

  • name
    Type: System.String

    The name of the agent to reserve (wildcard character supported).

Return Value

Type: Microsoft.TeamFoundation.Build.Server.Compatibility.AgentReservation2010
An agent reservation that represents the agent request.

.NET Framework Security

See Also

Reference

AgentReservationWebService Class

Microsoft.TeamFoundation.Build.Server.Compatibility Namespace