Partager via


IBuildServer.CreateBuildAgentSpec Method (String, String, String, Int32)

Note: This API is now obsolete.

Creates a new build agent specification that can be used to query build agents.

Namespace:  Microsoft.TeamFoundation.Build.Client
Assembly:  Microsoft.TeamFoundation.Build.Client (in Microsoft.TeamFoundation.Build.Client.dll)

Syntax

'Déclaration
<ObsoleteAttribute("This method has been deprecated. Please remove all references.",  _
    True)> _
Function CreateBuildAgentSpec ( _
    teamProject As String, _
    agentName As String, _
    machineName As String, _
    port As Integer _
) As IBuildAgentSpec
[ObsoleteAttribute("This method has been deprecated. Please remove all references.", 
    true)]
IBuildAgentSpec CreateBuildAgentSpec(
    string teamProject,
    string agentName,
    string machineName,
    int port
)
[ObsoleteAttribute(L"This method has been deprecated. Please remove all references.", 
    true)]
IBuildAgentSpec^ CreateBuildAgentSpec(
    String^ teamProject, 
    String^ agentName, 
    String^ machineName, 
    int port
)
[<ObsoleteAttribute("This method has been deprecated. Please remove all references.", 
    true)>]
abstract CreateBuildAgentSpec : 
        teamProject:string * 
        agentName:string * 
        machineName:string * 
        port:int -> IBuildAgentSpec 
function CreateBuildAgentSpec(
    teamProject : String, 
    agentName : String, 
    machineName : String, 
    port : int
) : IBuildAgentSpec

Parameters

  • teamProject
    Type: System.String
    The team project for which agents can be queried.
  • agentName
    Type: System.String
    The agent name to query. Wildcard characters are supported.
  • machineName
    Type: System.String
    The machine name to query. Empty string means "don't care".
  • port
    Type: System.Int32
    The port number to query. Zero means "don't care".

Return Value

Type: Microsoft.TeamFoundation.Build.Client.IBuildAgentSpec
The new build agent specification.

.NET Framework Security

See Also

Reference

IBuildServer Interface

CreateBuildAgentSpec Overload

Microsoft.TeamFoundation.Build.Client Namespace