Share via


BuildWebService4.QueryBuildsByUri Method

Queries builds by URI instead of by path with the provided options. A single [BuildQueryResult] object is returned from the query, with a [BuildDetail] list the same length as the input URI array. If a particular URI does not match any builds, then the corresponding index in the resulting [BuildDetail] list will be null. The amount of data returned from the query is controlled by means of the options parameter.

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

Syntax

'Declaration
<ClientServiceMethodAttribute(AsyncPattern := True, SyncPattern := True)> _
<WebMethodAttribute> _
Public Function QueryBuildsByUri ( _
    uris As String(), _
    informationTypes As String(), _
    options As QueryOptions, _
    deletedOption As QueryDeletedOption _
) As BuildQueryResult
[ClientServiceMethodAttribute(AsyncPattern = true, SyncPattern = true)]
[WebMethodAttribute]
public BuildQueryResult QueryBuildsByUri(
    string[] uris,
    string[] informationTypes,
    QueryOptions options,
    QueryDeletedOption deletedOption
)
[ClientServiceMethodAttribute(AsyncPattern = true, SyncPattern = true)]
[WebMethodAttribute]
public:
BuildQueryResult^ QueryBuildsByUri(
    array<String^>^ uris, 
    array<String^>^ informationTypes, 
    QueryOptions options, 
    QueryDeletedOption deletedOption
)
[<ClientServiceMethodAttribute(AsyncPattern = true, SyncPattern = true)>]
[<WebMethodAttribute>]
member QueryBuildsByUri : 
        uris:string[] * 
        informationTypes:string[] * 
        options:QueryOptions * 
        deletedOption:QueryDeletedOption -> BuildQueryResult
public function QueryBuildsByUri(
    uris : String[], 
    informationTypes : String[], 
    options : QueryOptions, 
    deletedOption : QueryDeletedOption
) : BuildQueryResult

Parameters

Return Value

Type: Microsoft.TeamFoundation.Build.Server.BuildQueryResult
A [BuildQueryResult] object that contains the query results.

.NET Framework Security

See Also

Reference

BuildWebService4 Class

Microsoft.TeamFoundation.Build.Server Namespace