Language
Edit

GitHttpClientBase.GetAttachmentsAsync Method

Definition

Overloads

Name Description
GetAttachmentsAsync(String, Guid, Int32, Object, CancellationToken)

[Preview API] Get a list of files attached to a given pull request.

GetAttachmentsAsync(Guid, Int32, Object, CancellationToken)

[Preview API] Get a list of files attached to a given pull request.

GetAttachmentsAsync(String, Int32, Object, CancellationToken)

[Preview API] Get a list of files attached to a given pull request.

GetAttachmentsAsync(Guid, Guid, Int32, Object, CancellationToken)

[Preview API] Get a list of files attached to a given pull request.

GetAttachmentsAsync(Guid, String, Int32, Object, CancellationToken)

[Preview API] Get a list of files attached to a given pull request.

GetAttachmentsAsync(String, String, Int32, Object, CancellationToken)

[Preview API] Get a list of files attached to a given pull request.

GetAttachmentsAsync(String, Guid, Int32, Object, CancellationToken)

[Preview API] Get a list of files attached to a given pull request.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Attachment>> GetAttachmentsAsync(string project, Guid repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetAttachmentsAsync : string * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Attachment>>
override this.GetAttachmentsAsync : string * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Attachment>>

Parameters

project
String

Project ID or project name

repositoryId
Guid

The repository ID of the pull request’s target branch.

pullRequestId
Int32

ID of the pull request.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetAttachmentsAsync(Guid, Int32, Object, CancellationToken)

[Preview API] Get a list of files attached to a given pull request.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Attachment>> GetAttachmentsAsync(Guid repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetAttachmentsAsync : Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Attachment>>
override this.GetAttachmentsAsync : Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Attachment>>

Parameters

repositoryId
Guid

The repository ID of the pull request’s target branch.

pullRequestId
Int32

ID of the pull request.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetAttachmentsAsync(String, Int32, Object, CancellationToken)

[Preview API] Get a list of files attached to a given pull request.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Attachment>> GetAttachmentsAsync(string repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetAttachmentsAsync : string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Attachment>>
override this.GetAttachmentsAsync : string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Attachment>>

Parameters

repositoryId
String

The repository ID of the pull request’s target branch.

pullRequestId
Int32

ID of the pull request.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetAttachmentsAsync(Guid, Guid, Int32, Object, CancellationToken)

[Preview API] Get a list of files attached to a given pull request.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Attachment>> GetAttachmentsAsync(Guid project, Guid repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetAttachmentsAsync : Guid * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Attachment>>
override this.GetAttachmentsAsync : Guid * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Attachment>>

Parameters

project
Guid

Project ID

repositoryId
Guid

The repository ID of the pull request’s target branch.

pullRequestId
Int32

ID of the pull request.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetAttachmentsAsync(Guid, String, Int32, Object, CancellationToken)

[Preview API] Get a list of files attached to a given pull request.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Attachment>> GetAttachmentsAsync(Guid project, string repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetAttachmentsAsync : Guid * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Attachment>>
override this.GetAttachmentsAsync : Guid * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Attachment>>

Parameters

project
Guid

Project ID

repositoryId
String

The repository ID of the pull request’s target branch.

pullRequestId
Int32

ID of the pull request.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetAttachmentsAsync(String, String, Int32, Object, CancellationToken)

[Preview API] Get a list of files attached to a given pull request.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Attachment>> GetAttachmentsAsync(string project, string repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetAttachmentsAsync : string * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Attachment>>
override this.GetAttachmentsAsync : string * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.SourceControl.WebApi.Attachment>>

Parameters

project
String

Project ID or project name

repositoryId
String

The repository ID of the pull request’s target branch.

pullRequestId
Int32

ID of the pull request.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to