Edit

GitHttpClientBase.DeleteAttachmentAsync Method

Definition

Overloads

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

[Preview API] Delete a pull request attachment.

public virtual System.Threading.Tasks.Task DeleteAttachmentAsync(string fileName, Guid repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member DeleteAttachmentAsync : string * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteAttachmentAsync : string * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

fileName
String

The name of the attachment to delete.

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

DeleteAttachmentAsync(String, String, Int32, Object, CancellationToken)

[Preview API] Delete a pull request attachment.

public virtual System.Threading.Tasks.Task DeleteAttachmentAsync(string fileName, string repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member DeleteAttachmentAsync : string * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteAttachmentAsync : string * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

fileName
String

The name of the attachment to delete.

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

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

[Preview API] Delete a pull request attachment.

public virtual System.Threading.Tasks.Task DeleteAttachmentAsync(Guid project, string fileName, Guid repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member DeleteAttachmentAsync : Guid * string * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteAttachmentAsync : Guid * string * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

project
Guid

Project ID

fileName
String

The name of the attachment to delete.

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

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

[Preview API] Delete a pull request attachment.

public virtual System.Threading.Tasks.Task DeleteAttachmentAsync(Guid project, string fileName, string repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member DeleteAttachmentAsync : Guid * string * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteAttachmentAsync : Guid * string * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

project
Guid

Project ID

fileName
String

The name of the attachment to delete.

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

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

[Preview API] Delete a pull request attachment.

public virtual System.Threading.Tasks.Task DeleteAttachmentAsync(string project, string fileName, Guid repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member DeleteAttachmentAsync : string * string * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteAttachmentAsync : string * string * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

project
String

Project ID or project name

fileName
String

The name of the attachment to delete.

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

DeleteAttachmentAsync(String, String, String, Int32, Object, CancellationToken)

[Preview API] Delete a pull request attachment.

public virtual System.Threading.Tasks.Task DeleteAttachmentAsync(string project, string fileName, string repositoryId, int pullRequestId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member DeleteAttachmentAsync : string * string * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteAttachmentAsync : string * string * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

project
String

Project ID or project name

fileName
String

The name of the attachment to delete.

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