GitHttpClientBase.CreatePushAsync 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
| CreatePushAsync(GitPush, String, Guid, Object, CancellationToken) |
[Preview API] Push changes to the repository. |
| CreatePushAsync(GitPush, Guid, String, Object, CancellationToken) |
[Preview API] Push changes to the repository. |
| CreatePushAsync(GitPush, String, String, Object, CancellationToken) |
[Preview API] Push changes to the repository. |
| CreatePushAsync(GitPush, String, Object, CancellationToken) |
[Preview API] Push changes to the repository. |
| CreatePushAsync(GitPush, Guid, Object, CancellationToken) |
[Preview API] Push changes to the repository. |
| CreatePushAsync(GitPush, Guid, Guid, Object, CancellationToken) |
[Preview API] Push changes to the repository. |
CreatePushAsync(GitPush, String, Guid, Object, CancellationToken)
[Preview API] Push changes to the repository.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush> CreatePushAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitPush push, string project, Guid repositoryId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreatePushAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPush * string * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>
override this.CreatePushAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPush * string * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>
Parameters
- push
- GitPush
- project
- String
Project ID or project name
- repositoryId
- Guid
The name or ID of the repository.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
CreatePushAsync(GitPush, Guid, String, Object, CancellationToken)
[Preview API] Push changes to the repository.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush> CreatePushAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitPush push, Guid project, string repositoryId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreatePushAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPush * Guid * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>
override this.CreatePushAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPush * Guid * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>
Parameters
- push
- GitPush
- project
- Guid
Project ID
- repositoryId
- String
The name or ID of the repository.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
CreatePushAsync(GitPush, String, String, Object, CancellationToken)
[Preview API] Push changes to the repository.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush> CreatePushAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitPush push, string project, string repositoryId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreatePushAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPush * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>
override this.CreatePushAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPush * string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>
Parameters
- push
- GitPush
- project
- String
Project ID or project name
- repositoryId
- String
The name or ID of the repository.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
CreatePushAsync(GitPush, String, Object, CancellationToken)
[Preview API] Push changes to the repository.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush> CreatePushAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitPush push, string repositoryId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreatePushAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPush * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>
override this.CreatePushAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPush * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>
Parameters
- push
- GitPush
- repositoryId
- String
The name or ID of the repository.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
CreatePushAsync(GitPush, Guid, Object, CancellationToken)
[Preview API] Push changes to the repository.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush> CreatePushAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitPush push, Guid repositoryId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreatePushAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPush * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>
override this.CreatePushAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPush * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>
Parameters
- push
- GitPush
- repositoryId
- Guid
The name or ID of the repository.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
CreatePushAsync(GitPush, Guid, Guid, Object, CancellationToken)
[Preview API] Push changes to the repository.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush> CreatePushAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitPush push, Guid project, Guid repositoryId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreatePushAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPush * Guid * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>
override this.CreatePushAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPush * Guid * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPush>
Parameters
- push
- GitPush
- project
- Guid
Project ID
- repositoryId
- Guid
The name or ID of the repository.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.