WorkItemTrackingHttpClientBase.RestoreWorkItemAsync 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
RestoreWorkItemAsync(WorkItemDeleteUpdate, Int32, Object, CancellationToken) |
[Preview API] Restores the deleted work item from Recycle Bin. |
RestoreWorkItemAsync(WorkItemDeleteUpdate, Guid, Int32, Object, CancellationToken) |
[Preview API] Restores the deleted work item from Recycle Bin. |
RestoreWorkItemAsync(WorkItemDeleteUpdate, String, Int32, Object, CancellationToken) |
[Preview API] Restores the deleted work item from Recycle Bin. |
RestoreWorkItemAsync(WorkItemDeleteUpdate, Int32, Object, CancellationToken)
[Preview API] Restores the deleted work item from Recycle Bin.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDelete> RestoreWorkItemAsync (Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDeleteUpdate payload, int id, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member RestoreWorkItemAsync : Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDeleteUpdate * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDelete>
override this.RestoreWorkItemAsync : Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDeleteUpdate * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDelete>
Parameters
- payload
- WorkItemDeleteUpdate
Paylod with instructions to update the IsDeleted flag to false
- id
- Int32
ID of the work item to be restored
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
RestoreWorkItemAsync(WorkItemDeleteUpdate, Guid, Int32, Object, CancellationToken)
[Preview API] Restores the deleted work item from Recycle Bin.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDelete> RestoreWorkItemAsync (Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDeleteUpdate payload, Guid project, int id, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member RestoreWorkItemAsync : Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDeleteUpdate * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDelete>
override this.RestoreWorkItemAsync : Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDeleteUpdate * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDelete>
Parameters
- payload
- WorkItemDeleteUpdate
Paylod with instructions to update the IsDeleted flag to false
- project
- Guid
Project ID
- id
- Int32
ID of the work item to be restored
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
RestoreWorkItemAsync(WorkItemDeleteUpdate, String, Int32, Object, CancellationToken)
[Preview API] Restores the deleted work item from Recycle Bin.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDelete> RestoreWorkItemAsync (Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDeleteUpdate payload, string project, int id, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member RestoreWorkItemAsync : Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDeleteUpdate * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDelete>
override this.RestoreWorkItemAsync : Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDeleteUpdate * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDelete>
Parameters
- payload
- WorkItemDeleteUpdate
Paylod with instructions to update the IsDeleted flag to false
- project
- String
Project ID or project name
- id
- Int32
ID of the work item to be restored
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for