共用方式為


SPWorkItemCollection.ProcessingThrottle property

取得或設定值,指定查詢的可執行的工作項目上指定可取得的工作流程執行個體的最大數目。

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

Syntax

'宣告
Public Property ProcessingThrottle As Integer
    Get
    Set
'用途
Dim instance As SPWorkItemCollection
Dim value As Integer

value = instance.ProcessingThrottle

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

Property value

Type: System.Int32
傳回與指定工作流程執行個體的最大數目的整數。

備註

工作流程的批次 ID 是SPWorkflow.InstanceId的屬性工作流程。執行個體識別碼,然後是取自 [工作流程和傳遞至工作項目執行個體的SPWorkItem.BatchId屬性。

如果批次識別碼的計數超過ProcessingThrottle的值,以取得可執行的工作項目查詢會傳回空集合,來有效關閉處理的工作項目。

這是新增的效果的確保程式碼的強固到足以處理非同步的行為,並在稍後的階段,可能會在不同的電腦上處理的工作項目。

請參閱

參照

SPWorkItemCollection class

SPWorkItemCollection members

Microsoft.SharePoint namespace

SPWorkItem.BatchId

SPWorkflow.InstanceId