GitHttpClientBase.UpdateRefAsync 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
| UpdateRefAsync(GitRefUpdate, String, Guid, String, String, Object, CancellationToken) |
[Preview API] Lock or Unlock a branch. |
| UpdateRefAsync(GitRefUpdate, String, String, String, String, Object, CancellationToken) |
[Preview API] Lock or Unlock a branch. |
| UpdateRefAsync(GitRefUpdate, Guid, String, String, String, Object, CancellationToken) |
[Preview API] Lock or Unlock a branch. |
| UpdateRefAsync(GitRefUpdate, Guid, String, String, Object, CancellationToken) |
[Preview API] Lock or Unlock a branch. |
| UpdateRefAsync(GitRefUpdate, String, String, String, Object, CancellationToken) |
[Preview API] Lock or Unlock a branch. |
| UpdateRefAsync(GitRefUpdate, Guid, Guid, String, String, Object, CancellationToken) |
[Preview API] Lock or Unlock a branch. |
UpdateRefAsync(GitRefUpdate, String, Guid, String, String, Object, CancellationToken)
[Preview API] Lock or Unlock a branch.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRef> UpdateRefAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate newRefInfo, string project, Guid repositoryId, string filter, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateRefAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate * string * Guid * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRef>
override this.UpdateRefAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate * string * Guid * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRef>
Parameters
- newRefInfo
- GitRefUpdate
The ref update action (lock/unlock) to perform
- project
- String
Project ID or project name
- repositoryId
- Guid
The name or ID of the repository.
- filter
- String
The name of the branch to lock/unlock
- projectId
- String
ID or name of the team project. Optional if specifying an ID for repository.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
UpdateRefAsync(GitRefUpdate, String, String, String, String, Object, CancellationToken)
[Preview API] Lock or Unlock a branch.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRef> UpdateRefAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate newRefInfo, string project, string repositoryId, string filter, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateRefAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate * string * string * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRef>
override this.UpdateRefAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate * string * string * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRef>
Parameters
- newRefInfo
- GitRefUpdate
The ref update action (lock/unlock) to perform
- project
- String
Project ID or project name
- repositoryId
- String
The name or ID of the repository.
- filter
- String
The name of the branch to lock/unlock
- projectId
- String
ID or name of the team project. Optional if specifying an ID for repository.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
UpdateRefAsync(GitRefUpdate, Guid, String, String, String, Object, CancellationToken)
[Preview API] Lock or Unlock a branch.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRef> UpdateRefAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate newRefInfo, Guid project, string repositoryId, string filter, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateRefAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate * Guid * string * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRef>
override this.UpdateRefAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate * Guid * string * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRef>
Parameters
- newRefInfo
- GitRefUpdate
The ref update action (lock/unlock) to perform
- project
- Guid
Project ID
- repositoryId
- String
The name or ID of the repository.
- filter
- String
The name of the branch to lock/unlock
- projectId
- String
ID or name of the team project. Optional if specifying an ID for repository.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
UpdateRefAsync(GitRefUpdate, Guid, String, String, Object, CancellationToken)
[Preview API] Lock or Unlock a branch.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRef> UpdateRefAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate newRefInfo, Guid repositoryId, string filter, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateRefAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate * Guid * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRef>
override this.UpdateRefAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate * Guid * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRef>
Parameters
- newRefInfo
- GitRefUpdate
The ref update action (lock/unlock) to perform
- repositoryId
- Guid
The name or ID of the repository.
- filter
- String
The name of the branch to lock/unlock
- projectId
- String
ID or name of the team project. Optional if specifying an ID for repository.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
UpdateRefAsync(GitRefUpdate, String, String, String, Object, CancellationToken)
[Preview API] Lock or Unlock a branch.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRef> UpdateRefAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate newRefInfo, string repositoryId, string filter, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateRefAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate * string * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRef>
override this.UpdateRefAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate * string * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRef>
Parameters
- newRefInfo
- GitRefUpdate
The ref update action (lock/unlock) to perform
- repositoryId
- String
The name or ID of the repository.
- filter
- String
The name of the branch to lock/unlock
- projectId
- String
ID or name of the team project. Optional if specifying an ID for repository.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
UpdateRefAsync(GitRefUpdate, Guid, Guid, String, String, Object, CancellationToken)
[Preview API] Lock or Unlock a branch.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRef> UpdateRefAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate newRefInfo, Guid project, Guid repositoryId, string filter, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateRefAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate * Guid * Guid * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRef>
override this.UpdateRefAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate * Guid * Guid * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRef>
Parameters
- newRefInfo
- GitRefUpdate
The ref update action (lock/unlock) to perform
- project
- Guid
Project ID
- repositoryId
- Guid
The name or ID of the repository.
- filter
- String
The name of the branch to lock/unlock
- projectId
- String
ID or name of the team project. Optional if specifying an ID for repository.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.