Share via


IBuildServer.CreateBuildAgentSpec Method (String, String, array<String , List<String>)

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

'Declaration
Function CreateBuildAgentSpec ( _
    name As String, _
    computer As String, _
    propertyNameFilters As String(), _
    tags As List(Of String) _
) As IBuildAgentSpec
IBuildAgentSpec CreateBuildAgentSpec(
    string name,
    string computer,
    string[] propertyNameFilters,
    List<string> tags
)
IBuildAgentSpec^ CreateBuildAgentSpec(
    String^ name, 
    String^ computer, 
    array<String^>^ propertyNameFilters, 
    List<String^>^ tags
)
abstract CreateBuildAgentSpec : 
        name:string * 
        computer:string * 
        propertyNameFilters:string[] * 
        tags:List<string> -> IBuildAgentSpec
function CreateBuildAgentSpec(
    name : String, 
    computer : String, 
    propertyNameFilters : String[], 
    tags : List<String>
) : IBuildAgentSpec

Parameters

  • name
    Type: System.String

    The agent name to query - supports wildcard characters.

  • computer
    Type: System.String

    The computer to query - null/empty means "do not care".

  • propertyNameFilters
    Type: array<System.String[]

    Property name filters

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