Edit

Share via


BuildHttpClientBase.ListRepositoriesAsync Method

Definition

Overloads

ListRepositoriesAsync(Guid, String, Nullable<Guid>, String, Nullable<ResultSet>, Nullable<Boolean>, String, Object, CancellationToken)

[Preview API] Gets a list of source code repositories.

ListRepositoriesAsync(String, String, Nullable<Guid>, String, Nullable<ResultSet>, Nullable<Boolean>, String, Object, CancellationToken)

[Preview API] Gets a list of source code repositories.

ListRepositoriesAsync(Guid, String, Nullable<Guid>, String, Nullable<ResultSet>, Nullable<Boolean>, String, Object, CancellationToken)

[Preview API] Gets a list of source code repositories.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.SourceRepositories> ListRepositoriesAsync (Guid project, string providerName, Nullable<Guid> serviceEndpointId = null, string repository = null, Nullable<Microsoft.TeamFoundation.Build.WebApi.ResultSet> resultSet = null, Nullable<bool> pageResults = null, string continuationToken = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member ListRepositoriesAsync : Guid * string * Nullable<Guid> * string * Nullable<Microsoft.TeamFoundation.Build.WebApi.ResultSet> * Nullable<bool> * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.SourceRepositories>
override this.ListRepositoriesAsync : Guid * string * Nullable<Guid> * string * Nullable<Microsoft.TeamFoundation.Build.WebApi.ResultSet> * Nullable<bool> * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.SourceRepositories>

Parameters

project
Guid

Project ID

providerName
String

The name of the source provider.

serviceEndpointId
Nullable<Guid>

If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit.

repository
String

If specified, the vendor-specific identifier or the name of a single repository to get.

resultSet
Nullable<ResultSet>

'top' for the repositories most relevant for the endpoint. If not set, all repositories are returned. Ignored if 'repository' is set.

pageResults
Nullable<Boolean>

If set to true, this will limit the set of results and will return a continuation token to continue the query.

continuationToken
String

When paging results, this is a continuation token, returned by a previous call to this method, that can be used to return the next set of repositories.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

ListRepositoriesAsync(String, String, Nullable<Guid>, String, Nullable<ResultSet>, Nullable<Boolean>, String, Object, CancellationToken)

[Preview API] Gets a list of source code repositories.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.SourceRepositories> ListRepositoriesAsync (string project, string providerName, Nullable<Guid> serviceEndpointId = null, string repository = null, Nullable<Microsoft.TeamFoundation.Build.WebApi.ResultSet> resultSet = null, Nullable<bool> pageResults = null, string continuationToken = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member ListRepositoriesAsync : string * string * Nullable<Guid> * string * Nullable<Microsoft.TeamFoundation.Build.WebApi.ResultSet> * Nullable<bool> * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.SourceRepositories>
override this.ListRepositoriesAsync : string * string * Nullable<Guid> * string * Nullable<Microsoft.TeamFoundation.Build.WebApi.ResultSet> * Nullable<bool> * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Build.WebApi.SourceRepositories>

Parameters

project
String

Project ID or project name

providerName
String

The name of the source provider.

serviceEndpointId
Nullable<Guid>

If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit.

repository
String

If specified, the vendor-specific identifier or the name of a single repository to get.

resultSet
Nullable<ResultSet>

'top' for the repositories most relevant for the endpoint. If not set, all repositories are returned. Ignored if 'repository' is set.

pageResults
Nullable<Boolean>

If set to true, this will limit the set of results and will return a continuation token to continue the query.

continuationToken
String

When paging results, this is a continuation token, returned by a previous call to this method, that can be used to return the next set of repositories.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to