Edit

Share via


GitHttpClientBase.UpdateRefsAsync Method

Definition

Overloads

UpdateRefsAsync(IEnumerable<GitRefUpdate>, Guid, String, Object, CancellationToken)

[Preview API] Creating, updating, or deleting refs(branches).

UpdateRefsAsync(IEnumerable<GitRefUpdate>, String, String, Object, CancellationToken)

[Preview API] Creating, updating, or deleting refs(branches).

UpdateRefsAsync(IEnumerable<GitRefUpdate>, Guid, Guid, String, Object, CancellationToken)

[Preview API] Creating, updating, or deleting refs(branches).

UpdateRefsAsync(IEnumerable<GitRefUpdate>, Guid, String, String, Object, CancellationToken)

[Preview API] Creating, updating, or deleting refs(branches).

UpdateRefsAsync(IEnumerable<GitRefUpdate>, String, Guid, String, Object, CancellationToken)

[Preview API] Creating, updating, or deleting refs(branches).

UpdateRefsAsync(IEnumerable<GitRefUpdate>, String, String, String, Object, CancellationToken)

[Preview API] Creating, updating, or deleting refs(branches).

UpdateRefsAsync(IEnumerable<GitRefUpdate>, Guid, String, Object, CancellationToken)

[Preview API] Creating, updating, or deleting refs(branches).

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdateResult>> UpdateRefsAsync(System.Collections.Generic.IEnumerable<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate> refUpdates, Guid repositoryId, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateRefsAsync : seq<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate> * Guid * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdateResult>>
override this.UpdateRefsAsync : seq<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate> * Guid * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdateResult>>

Parameters

refUpdates
IEnumerable<GitRefUpdate>

List of ref updates to attempt to perform

repositoryId
Guid

The name or ID of the repository.

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

UpdateRefsAsync(IEnumerable<GitRefUpdate>, String, String, Object, CancellationToken)

[Preview API] Creating, updating, or deleting refs(branches).

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdateResult>> UpdateRefsAsync(System.Collections.Generic.IEnumerable<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate> refUpdates, string repositoryId, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateRefsAsync : seq<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate> * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdateResult>>
override this.UpdateRefsAsync : seq<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate> * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdateResult>>

Parameters

refUpdates
IEnumerable<GitRefUpdate>

List of ref updates to attempt to perform

repositoryId
String

The name or ID of the repository.

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

UpdateRefsAsync(IEnumerable<GitRefUpdate>, Guid, Guid, String, Object, CancellationToken)

[Preview API] Creating, updating, or deleting refs(branches).

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdateResult>> UpdateRefsAsync(System.Collections.Generic.IEnumerable<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate> refUpdates, Guid project, Guid repositoryId, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateRefsAsync : seq<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate> * Guid * Guid * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdateResult>>
override this.UpdateRefsAsync : seq<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate> * Guid * Guid * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdateResult>>

Parameters

refUpdates
IEnumerable<GitRefUpdate>

List of ref updates to attempt to perform

project
Guid

Project ID

repositoryId
Guid

The name or ID of the repository.

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

UpdateRefsAsync(IEnumerable<GitRefUpdate>, Guid, String, String, Object, CancellationToken)

[Preview API] Creating, updating, or deleting refs(branches).

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdateResult>> UpdateRefsAsync(System.Collections.Generic.IEnumerable<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate> refUpdates, Guid project, string repositoryId, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateRefsAsync : seq<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate> * Guid * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdateResult>>
override this.UpdateRefsAsync : seq<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate> * Guid * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdateResult>>

Parameters

refUpdates
IEnumerable<GitRefUpdate>

List of ref updates to attempt to perform

project
Guid

Project ID

repositoryId
String

The name or ID of the repository.

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

UpdateRefsAsync(IEnumerable<GitRefUpdate>, String, Guid, String, Object, CancellationToken)

[Preview API] Creating, updating, or deleting refs(branches).

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdateResult>> UpdateRefsAsync(System.Collections.Generic.IEnumerable<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate> refUpdates, string project, Guid repositoryId, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateRefsAsync : seq<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate> * string * Guid * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdateResult>>
override this.UpdateRefsAsync : seq<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate> * string * Guid * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdateResult>>

Parameters

refUpdates
IEnumerable<GitRefUpdate>

List of ref updates to attempt to perform

project
String

Project ID or project name

repositoryId
Guid

The name or ID of the repository.

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

UpdateRefsAsync(IEnumerable<GitRefUpdate>, String, String, String, Object, CancellationToken)

[Preview API] Creating, updating, or deleting refs(branches).

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdateResult>> UpdateRefsAsync(System.Collections.Generic.IEnumerable<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate> refUpdates, string project, string repositoryId, string projectId = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateRefsAsync : seq<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate> * string * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdateResult>>
override this.UpdateRefsAsync : seq<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdate> * string * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.GitRefUpdateResult>>

Parameters

refUpdates
IEnumerable<GitRefUpdate>

List of ref updates to attempt to perform

project
String

Project ID or project name

repositoryId
String

The name or ID of the repository.

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