Export (0) Print
Expand All

SPWorkItem.InternalState property

Instance value returned from the Microsoft.SharePoint.SPWorkItemStatus enumeration that specifies the current processing status of the work item.

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

public SPWorkItemStatus InternalState { get; }

Property value

Type: Microsoft.SharePoint.SPWorkItemStatus
Returns an enumeration value specifying the processing state of the work item object.

None

Processing of the SPWorkItem object has not started.

InProgress

Processing of the SPWorkItem object is in progress.

Completed

Processing of the SPWorkItem object has been completed.

All

Processing of the SPWorkItem object is either in the InProgress state or the Completed state.

Typically, SPWorkItem objects are deleted from the priority queue after they are processed. However, your code can persist completed work items in the Completed state, when, for example, dependency or status reporting requirements, or other list synchronization issues, require that the object remain in the queue.

In cases in which the work item remains in the queue after its processing is completed, superfluous data that is stored in the TextPayload property should be removed.

Show:
© 2015 Microsoft