Edit

Share via


WorkItemTrackingHttpClientBase.DestroyWorkItemAsync Method

Definition

Overloads

DestroyWorkItemAsync(Int32, Object, CancellationToken)

[Preview API] Destroys the specified work item permanently from the Recycle Bin. This action can not be undone.

DestroyWorkItemAsync(Guid, Int32, Object, CancellationToken)

[Preview API] Destroys the specified work item permanently from the Recycle Bin. This action can not be undone.

DestroyWorkItemAsync(String, Int32, Object, CancellationToken)

[Preview API] Destroys the specified work item permanently from the Recycle Bin. This action can not be undone.

DestroyWorkItemAsync(Int32, Object, CancellationToken)

[Preview API] Destroys the specified work item permanently from the Recycle Bin. This action can not be undone.

public virtual System.Threading.Tasks.Task DestroyWorkItemAsync (int id, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member DestroyWorkItemAsync : int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DestroyWorkItemAsync : int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

id
Int32

ID of the work item to be destroyed permanently

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

DestroyWorkItemAsync(Guid, Int32, Object, CancellationToken)

[Preview API] Destroys the specified work item permanently from the Recycle Bin. This action can not be undone.

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

Parameters

project
Guid

Project ID

id
Int32

ID of the work item to be destroyed permanently

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

DestroyWorkItemAsync(String, Int32, Object, CancellationToken)

[Preview API] Destroys the specified work item permanently from the Recycle Bin. This action can not be undone.

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

Parameters

project
String

Project ID or project name

id
Int32

ID of the work item to be destroyed permanently

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to