GitHttpClientBase.GetRefFavoriteAsync 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
| Name | Description |
|---|---|
| GetRefFavoriteAsync(Guid, Int32, Object, CancellationToken) |
[Preview API] Gets the refs favorite for a favorite Id. |
| GetRefFavoriteAsync(String, Int32, Object, CancellationToken) |
[Preview API] Gets the refs favorite for a favorite Id. |
GetRefFavoriteAsync(Guid, Int32, Object, CancellationToken)
[Preview API] Gets the refs favorite for a favorite Id.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefFavorite> GetRefFavoriteAsync(Guid project, int favoriteId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetRefFavoriteAsync : Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefFavorite>
override this.GetRefFavoriteAsync : Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefFavorite>
Parameters
- project
- Guid
Project ID
- favoriteId
- Int32
The Id of the requested ref favorite.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetRefFavoriteAsync(String, Int32, Object, CancellationToken)
[Preview API] Gets the refs favorite for a favorite Id.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefFavorite> GetRefFavoriteAsync(string project, int favoriteId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetRefFavoriteAsync : string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefFavorite>
override this.GetRefFavoriteAsync : string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefFavorite>
Parameters
- project
- String
Project ID or project name
- favoriteId
- Int32
The Id of the requested ref favorite.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.