SPWorkItem class
提供控制的特性和行為的工作項目物件執行個體的屬性。此類別一起使用Microsoft.SharePoint.SPWorkItemCollection類別。
Inheritance hierarchy
System.Object
Microsoft.SharePoint.SPWorkItem
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public NotInheritable Class SPWorkItem
'用途
Dim instance As SPWorkItem
public sealed class SPWorkItem
備註
SPWorkItem物件中所用的程式設計內容其中需要排入佇列並在未來的時間 ; 然後非同步處理大量的事件發生此情況使用批次處理的高層級的程序。
良好的範例是 SharePoint 工作流程,使用SPWorkItem物件事件處理。另一個例子是 Microsoft Content Management Server,這也會使用SPWorkItem物件來以程式設計方式協調工作程序。
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.