Partilhar via


SPWorkItemCollection.ProcessingBatchSize Property

Gets or sets the maximum number of work items that are paged in to a processing timer job.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Property ProcessingBatchSize As Integer
    Get
    Set
'Usage
Dim instance As SPWorkItemCollection
Dim value As Integer

value = instance.ProcessingBatchSize

instance.ProcessingBatchSize = value
public int ProcessingBatchSize { get; set; }

Property Value

Type: System.Int32
Returns an integer specifying the maximum batch size.

Remarks

Use this method to help throttle, or regulate, the flow of work items exposed to the timer job definition. Optimizing this value requires testing behavior on the hardware and software in use.

See Also

Reference

SPWorkItemCollection Class

SPWorkItemCollection Members

Microsoft.SharePoint Namespace

Microsoft.SharePoint.Administration.SPWorkItemJobDefinition