SPWorkItemStatus enumeration

Specifies the current processing status of an SPWorkItem object instance. The value is passed to the InternalState property.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

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

public enum SPWorkItemStatus

Member nameDescription
NoneIndicates that processing of the SPWorkItem object has not started.
InProgressIndicates that processing of the SPWorkItem object is in progress.

When a SPWorkItemCollection object is fetched by using the SPRequest.GetRunnableWorkItemsAsSafeArray method, all work items that are returned have their InternalState property set to InProgress. This setting allows exclusive access to the work item by the client that owns it.

CompletedIndicates that processing of the SPWorkItem object has been completed.

Typically, work items are deleted from the priority queue after they are processed. However, this option allows you to persist completed work items in the Completed state, such as when dependency or status reporting requirements require that the object remain in the queue.

AllIndicates that processing of the SPWorkItem object is either in the InProgress state or the Completed state.

This value is a bitmask representing the logical OR or all possible flags for SPWorkItem.InternalState