Edit

Share via


WorkItemTrackingHttpClientBase.GetDeletedWorkItemAsync Method

Definition

Overloads

GetDeletedWorkItemAsync(Guid, Int32, Object, CancellationToken)

[Preview API] Gets a deleted work item from Recycle Bin.

GetDeletedWorkItemAsync(String, Int32, Object, CancellationToken)

[Preview API] Gets a deleted work item from Recycle Bin.

GetDeletedWorkItemAsync(Int32, Object, CancellationToken)

[Preview API] Gets a deleted work item from Recycle Bin.

GetDeletedWorkItemAsync(Guid, Int32, Object, CancellationToken)

[Preview API] Gets a deleted work item from Recycle Bin.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDelete> GetDeletedWorkItemAsync (Guid project, int id, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetDeletedWorkItemAsync : Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDelete>
override this.GetDeletedWorkItemAsync : Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDelete>

Parameters

project
Guid

Project ID

id
Int32

ID of the work item to be returned

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetDeletedWorkItemAsync(String, Int32, Object, CancellationToken)

[Preview API] Gets a deleted work item from Recycle Bin.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDelete> GetDeletedWorkItemAsync (string project, int id, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetDeletedWorkItemAsync : string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDelete>
override this.GetDeletedWorkItemAsync : string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDelete>

Parameters

project
String

Project ID or project name

id
Int32

ID of the work item to be returned

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetDeletedWorkItemAsync(Int32, Object, CancellationToken)

[Preview API] Gets a deleted work item from Recycle Bin.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDelete> GetDeletedWorkItemAsync (int id, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetDeletedWorkItemAsync : int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDelete>
override this.GetDeletedWorkItemAsync : int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDelete>

Parameters

id
Int32

ID of the work item to be returned

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to