SPWorkItemCollection.DeleteWorkItem method

Deletes a single specified work item from the processing queue.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub DeleteWorkItem ( _
    workItemId As Guid _
)
'Usage
Dim instance As SPWorkItemCollection
Dim workItemId As Guid

instance.DeleteWorkItem(workItemId)
public void DeleteWorkItem(
    Guid workItemId
)

Parameters

  • workItemId
    Type: System.Guid

    Unique identifier of the work item to be deleted.

See also

Reference

SPWorkItemCollection class

SPWorkItemCollection members

Microsoft.SharePoint namespace