Compartir a través de


SPWorkItem Class

Provides properties that control the characteristics and behaviors of work item object instances. This class is used in conjunction with the Microsoft.SharePoint.SPWorkItemCollection class.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.SPWorkItem

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

Syntax

<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SPWorkItem

Dim instance As SPWorkItem
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPWorkItem

Remarks

SPWorkItem objects are used in programming contexts where a large number of events need to be queued and then processed asynchronously at a future time; this occurs by using batch processing by a high-level process.

A good example is the processing of SharePoint workflows, which use SPWorkItem object events. Another example is Microsoft Content Management Server, which also uses SPWorkItem objects to programmatically coordinate work processes.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPWorkItem Members

Microsoft.SharePoint Namespace

SPWorkItemCollection

AddWorkItem

SPWorkItemJobDefinition