IPendingWork.MustCommit(ICollection) 方法

定義

允許工作批次中的項目判斷是否必須立即提交。

public:
 bool MustCommit(System::Collections::ICollection ^ items);
public bool MustCommit(System.Collections.ICollection items);
abstract member MustCommit : System.Collections.ICollection -> bool
Public Function MustCommit (items As ICollection) As Boolean

參數

items
ICollection

一份 ICollection 工作項目。

傳回

true若收藏中的任何項目必須立即提交;否則,。 false

備註

MustCommit 返回 false,工作可延後至未來的提交點。 若必須提交任何項目,則 true 返回,所有項目將在當前提交點提交。 關於可能的提交點的討論,請參見該 SqlWorkflowPersistenceService 類別。

適用於