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.StringThe build that is making the reservation.
name
Type: System.StringThe name of the agent to reserve (wildcard character supported).
requiredTags
Type: System.Collections.Generic.List<String>The list of required tags for the reservation (optional).
- tagComparison
Type: Microsoft.TeamFoundation.Build.Server.Compatibility.TagComparison2010
Return Value
Type: Microsoft.TeamFoundation.Build.Server.Compatibility.AgentReservation2010
An agent reservation that represents the agent request.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
AgentReservationWebService Class
Microsoft.TeamFoundation.Build.Server.Compatibility Namespace