Edit

GitHttpClientBase.CreateRevertAsync Method

Definition

Overloads

CreateRevertAsync(GitAsyncRefOperationParameters, Guid, Guid, Object, CancellationToken)

[Preview API] Starts the operation to create a new branch which reverts changes introduced by either a specific commit or commits that are associated to a pull request.

CreateRevertAsync(GitAsyncRefOperationParameters, Guid, String, Object, CancellationToken)

[Preview API] Starts the operation to create a new branch which reverts changes introduced by either a specific commit or commits that are associated to a pull request.

CreateRevertAsync(GitAsyncRefOperationParameters, String, Guid, Object, CancellationToken)

[Preview API] Starts the operation to create a new branch which reverts changes introduced by either a specific commit or commits that are associated to a pull request.

CreateRevertAsync(GitAsyncRefOperationParameters, String, String, Object, CancellationToken)

[Preview API] Starts the operation to create a new branch which reverts changes introduced by either a specific commit or commits that are associated to a pull request.

CreateRevertAsync(GitAsyncRefOperationParameters, Guid, Guid, Object, CancellationToken)

[Preview API] Starts the operation to create a new branch which reverts changes introduced by either a specific commit or commits that are associated to a pull request.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRevert> CreateRevertAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitAsyncRefOperationParameters revertToCreate, Guid project, Guid repositoryId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreateRevertAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitAsyncRefOperationParameters * Guid * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRevert>
override this.CreateRevertAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitAsyncRefOperationParameters * Guid * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRevert>

Parameters

project
Guid

Project ID

repositoryId
Guid

ID of the repository.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

CreateRevertAsync(GitAsyncRefOperationParameters, Guid, String, Object, CancellationToken)

[Preview API] Starts the operation to create a new branch which reverts changes introduced by either a specific commit or commits that are associated to a pull request.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRevert> CreateRevertAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitAsyncRefOperationParameters revertToCreate, Guid project, string repositoryId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreateRevertAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitAsyncRefOperationParameters * Guid * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRevert>
override this.CreateRevertAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitAsyncRefOperationParameters * Guid * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRevert>

Parameters

project
Guid

Project ID

repositoryId
String

ID of the repository.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

CreateRevertAsync(GitAsyncRefOperationParameters, String, Guid, Object, CancellationToken)

[Preview API] Starts the operation to create a new branch which reverts changes introduced by either a specific commit or commits that are associated to a pull request.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRevert> CreateRevertAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitAsyncRefOperationParameters revertToCreate, string project, Guid repositoryId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreateRevertAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitAsyncRefOperationParameters * string * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRevert>
override this.CreateRevertAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitAsyncRefOperationParameters * string * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRevert>

Parameters

project
String

Project ID or project name

repositoryId
Guid

ID of the repository.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

CreateRevertAsync(GitAsyncRefOperationParameters, String, String, Object, CancellationToken)

[Preview API] Starts the operation to create a new branch which reverts changes introduced by either a specific commit or commits that are associated to a pull request.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRevert> CreateRevertAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitAsyncRefOperationParameters revertToCreate, string project, string repositoryId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreateRevertAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitAsyncRefOperationParameters * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRevert>
override this.CreateRevertAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitAsyncRefOperationParameters * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitRevert>

Parameters

project
String

Project ID or project name

repositoryId
String

ID of the repository.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to