Share via


SPWorkItem.BatchId property

Gets a unique identifier (GUID) that identifies a specified group of SPWorkItem objects that are most logically processed (for performance) as a contiguous batch. For workflow events, the InstanceId value is used as the BatchId property for their respective work item instances.

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

Syntax

'Declaration
Public ReadOnly Property BatchId As Guid
    Get
'Usage
Dim instance As SPWorkItem
Dim value As Guid

value = instance.BatchId
public Guid BatchId { get; }

Property value

Type: System.Guid

Remarks

Work items are processed in sort order based on a composite sort key that includes the following properties: Type, DeliveryDate, Site, UserId, WebId, BatchID, and ID.

Because both throttling operations rely on the BatchID property, you must set this property if you intend your ISPWorkItemHost to implement throttling.

See also

Reference

SPWorkItem class

SPWorkItem members

Microsoft.SharePoint namespace

SPWorkflow.InstanceId