This documentation is archived and is not being maintained.

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)

IBuildAgentSpec^ CreateBuildAgentSpec(
	String^ name, 
	String^ computer, 
	array<String^>^ propertyNameFilters, 
	List<String^>^ tags
)

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

tags
Type: System.Collections.Generic::List<String>

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

Return Value

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

Show: