GitHttpClientBase.GetAttachmentContentAsync 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
| Name | Description |
|---|---|
| GetAttachmentContentAsync(String, String, Int32, Object, CancellationToken) |
[Preview API] Get the file content of a pull request attachment. |
| GetAttachmentContentAsync(String, String, String, Int32, Object, CancellationToken) |
[Preview API] Get the file content of a pull request attachment. |
| GetAttachmentContentAsync(String, String, Guid, Int32, Object, CancellationToken) |
[Preview API] Get the file content of a pull request attachment. |
| GetAttachmentContentAsync(String, Guid, Int32, Object, CancellationToken) |
[Preview API] Get the file content of a pull request attachment. |
| GetAttachmentContentAsync(Guid, String, Guid, Int32, Object, CancellationToken) |
[Preview API] Get the file content of a pull request attachment. |
| GetAttachmentContentAsync(Guid, String, String, Int32, Object, CancellationToken) |
[Preview API] Get the file content of a pull request attachment. |
GetAttachmentContentAsync(String, String, Int32, Object, CancellationToken)
[Preview API] Get the file content of a pull request attachment.
public virtual System.Threading.Tasks.Task<System.IO.Stream> GetAttachmentContentAsync(string fileName, string repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetAttachmentContentAsync : string * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
override this.GetAttachmentContentAsync : string * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
Parameters
- fileName
- String
The name of the attachment.
- 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
GetAttachmentContentAsync(String, String, String, Int32, Object, CancellationToken)
[Preview API] Get the file content of a pull request attachment.
public virtual System.Threading.Tasks.Task<System.IO.Stream> GetAttachmentContentAsync(string project, string fileName, string repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetAttachmentContentAsync : string * string * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
override this.GetAttachmentContentAsync : string * string * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
Parameters
- project
- String
Project ID or project name
- fileName
- String
The name of the attachment.
- 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
GetAttachmentContentAsync(String, String, Guid, Int32, Object, CancellationToken)
[Preview API] Get the file content of a pull request attachment.
public virtual System.Threading.Tasks.Task<System.IO.Stream> GetAttachmentContentAsync(string project, string fileName, Guid repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetAttachmentContentAsync : string * string * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
override this.GetAttachmentContentAsync : string * string * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
Parameters
- project
- String
Project ID or project name
- fileName
- String
The name of the attachment.
- 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
GetAttachmentContentAsync(String, Guid, Int32, Object, CancellationToken)
[Preview API] Get the file content of a pull request attachment.
public virtual System.Threading.Tasks.Task<System.IO.Stream> GetAttachmentContentAsync(string fileName, Guid repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetAttachmentContentAsync : string * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
override this.GetAttachmentContentAsync : string * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
Parameters
- fileName
- String
The name of the attachment.
- 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
GetAttachmentContentAsync(Guid, String, Guid, Int32, Object, CancellationToken)
[Preview API] Get the file content of a pull request attachment.
public virtual System.Threading.Tasks.Task<System.IO.Stream> GetAttachmentContentAsync(Guid project, string fileName, Guid repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetAttachmentContentAsync : Guid * string * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
override this.GetAttachmentContentAsync : Guid * string * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
Parameters
- project
- Guid
Project ID
- fileName
- String
The name of the attachment.
- 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
GetAttachmentContentAsync(Guid, String, String, Int32, Object, CancellationToken)
[Preview API] Get the file content of a pull request attachment.
public virtual System.Threading.Tasks.Task<System.IO.Stream> GetAttachmentContentAsync(Guid project, string fileName, string repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetAttachmentContentAsync : Guid * string * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
override this.GetAttachmentContentAsync : Guid * string * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
Parameters
- project
- Guid
Project ID
- fileName
- String
The name of the attachment.
- 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.