GitCompatHttpClientBase.GetRepositoryAsync 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
GetRepositoryAsync(String, Guid, Nullable<Boolean>, Object, CancellationToken)
[Preview API] Retrieve a git repository.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository> GetRepositoryAsync(string project, Guid repositoryId, Nullable<bool> includeParent = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetRepositoryAsync : string * Guid * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository>
override this.GetRepositoryAsync : string * Guid * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository>
Parameters
- project
- String
Project ID or project name
- repositoryId
- Guid
The name or ID of the repository.
[optional] True to include parent repository. The default value is false.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetRepositoryAsync(Guid, Object, CancellationToken)
[Preview API]
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository> GetRepositoryAsync(Guid repositoryId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetRepositoryAsync : Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository>
override this.GetRepositoryAsync : Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository>
Parameters
- repositoryId
- Guid
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetRepositoryAsync(String, Object, CancellationToken)
[Preview API]
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository> GetRepositoryAsync(string repositoryId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetRepositoryAsync : string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository>
override this.GetRepositoryAsync : string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository>
Parameters
- repositoryId
- String
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetRepositoryAsync(Guid, Guid, Object, CancellationToken)
[Preview API]
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository> GetRepositoryAsync(Guid project, Guid repositoryId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetRepositoryAsync : Guid * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository>
override this.GetRepositoryAsync : Guid * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository>
Parameters
- project
- Guid
Project ID
- repositoryId
- Guid
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetRepositoryAsync(Guid, Nullable<Boolean>, Object, CancellationToken)
[Preview API] Retrieve a git repository.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository> GetRepositoryAsync(Guid repositoryId, Nullable<bool> includeParent = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetRepositoryAsync : Guid * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository>
override this.GetRepositoryAsync : Guid * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository>
Parameters
- repositoryId
- Guid
The name or ID of the repository.
[optional] True to include parent repository. The default value is false.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetRepositoryAsync(Guid, String, Object, CancellationToken)
[Preview API]
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository> GetRepositoryAsync(Guid project, string repositoryId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetRepositoryAsync : Guid * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository>
override this.GetRepositoryAsync : Guid * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository>
Parameters
- project
- Guid
Project ID
- repositoryId
- String
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetRepositoryAsync(String, Guid, Object, CancellationToken)
[Preview API]
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository> GetRepositoryAsync(string project, Guid repositoryId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetRepositoryAsync : string * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository>
override this.GetRepositoryAsync : string * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository>
Parameters
- project
- String
Project ID or project name
- repositoryId
- Guid
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetRepositoryAsync(String, Nullable<Boolean>, Object, CancellationToken)
[Preview API] Retrieve a git repository.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository> GetRepositoryAsync(string repositoryId, Nullable<bool> includeParent = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetRepositoryAsync : string * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository>
override this.GetRepositoryAsync : string * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository>
Parameters
- repositoryId
- String
The name or ID of the repository.
[optional] True to include parent repository. The default value is false.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetRepositoryAsync(String, String, Object, CancellationToken)
[Preview API]
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository> GetRepositoryAsync(string project, string repositoryId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetRepositoryAsync : string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository>
override this.GetRepositoryAsync : string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository>
Parameters
- project
- String
Project ID or project name
- repositoryId
- String
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetRepositoryAsync(Guid, Guid, Nullable<Boolean>, Object, CancellationToken)
[Preview API] Retrieve a git repository.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository> GetRepositoryAsync(Guid project, Guid repositoryId, Nullable<bool> includeParent = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetRepositoryAsync : Guid * Guid * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository>
override this.GetRepositoryAsync : Guid * Guid * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository>
Parameters
- project
- Guid
Project ID
- repositoryId
- Guid
The name or ID of the repository.
[optional] True to include parent repository. The default value is false.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetRepositoryAsync(Guid, String, Nullable<Boolean>, Object, CancellationToken)
[Preview API] Retrieve a git repository.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository> GetRepositoryAsync(Guid project, string repositoryId, Nullable<bool> includeParent = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetRepositoryAsync : Guid * string * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository>
override this.GetRepositoryAsync : Guid * string * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository>
Parameters
- project
- Guid
Project ID
- repositoryId
- String
The name or ID of the repository.
[optional] True to include parent repository. The default value is false.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetRepositoryAsync(String, String, Nullable<Boolean>, Object, CancellationToken)
[Preview API] Retrieve a git repository.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository> GetRepositoryAsync(string project, string repositoryId, Nullable<bool> includeParent = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetRepositoryAsync : string * string * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository>
override this.GetRepositoryAsync : string * string * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository>
Parameters
- project
- String
Project ID or project name
- repositoryId
- String
The name or ID of the repository.
[optional] True to include parent repository. The default value is false.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.