Share via


SPWorkItemCollection.DeleteWorkItem Method

Deletes a single specified work item from the processing queue.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

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