BuildHttpClientBase.ListRepositoriesAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.
'top' for the repositories most relevant for the endpoint. If not set, all repositories are returned. Ignored if 'repository' is set.
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.
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.
'top' for the repositories most relevant for the endpoint. If not set, all repositories are returned. Ignored if 'repository' is set.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for