WorkItemTrackingHttpClientBase.DeleteWorkItemAsync 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
DeleteWorkItemAsync(Int32, Nullable<Boolean>, Object, CancellationToken) |
[Preview API] Deletes the specified work item and sends it to the Recycle Bin, so that it can be restored back, if required. Optionally, if the destroy parameter has been set to true, it destroys the work item permanently. |
DeleteWorkItemAsync(Guid, Int32, Nullable<Boolean>, Object, CancellationToken) |
[Preview API] Deletes the specified work item and sends it to the Recycle Bin, so that it can be restored back, if required. Optionally, if the destroy parameter has been set to true, it destroys the work item permanently. |
DeleteWorkItemAsync(String, Int32, Nullable<Boolean>, Object, CancellationToken) |
[Preview API] Deletes the specified work item and sends it to the Recycle Bin, so that it can be restored back, if required. Optionally, if the destroy parameter has been set to true, it destroys the work item permanently. |
DeleteWorkItemAsync(Int32, Nullable<Boolean>, Object, CancellationToken)
[Preview API] Deletes the specified work item and sends it to the Recycle Bin, so that it can be restored back, if required. Optionally, if the destroy parameter has been set to true, it destroys the work item permanently.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDelete> DeleteWorkItemAsync (int id, Nullable<bool> destroy = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member DeleteWorkItemAsync : int * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDelete>
override this.DeleteWorkItemAsync : int * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDelete>
Parameters
- id
- Int32
ID of the work item to be deleted
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
DeleteWorkItemAsync(Guid, Int32, Nullable<Boolean>, Object, CancellationToken)
[Preview API] Deletes the specified work item and sends it to the Recycle Bin, so that it can be restored back, if required. Optionally, if the destroy parameter has been set to true, it destroys the work item permanently.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDelete> DeleteWorkItemAsync (Guid project, int id, Nullable<bool> destroy = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member DeleteWorkItemAsync : Guid * int * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDelete>
override this.DeleteWorkItemAsync : Guid * int * Nullable<bool> * 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 deleted
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
DeleteWorkItemAsync(String, Int32, Nullable<Boolean>, Object, CancellationToken)
[Preview API] Deletes the specified work item and sends it to the Recycle Bin, so that it can be restored back, if required. Optionally, if the destroy parameter has been set to true, it destroys the work item permanently.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDelete> DeleteWorkItemAsync (string project, int id, Nullable<bool> destroy = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member DeleteWorkItemAsync : string * int * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItemDelete>
override this.DeleteWorkItemAsync : string * int * Nullable<bool> * 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 deleted
- 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