Editar

Compartilhar via


IPendingWork.MustCommit(ICollection) Method

Definition

Allows the items in the work batch to assert whether they must commit immediately.

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

Parameters

items
ICollection

An ICollection of work items.

Returns

true if any item in the collection must be committed immediately; otherwise, false.

Remarks

If MustCommit returns false, the work can be postponed to a future commit point. If any of the items must be committed, then return true and all items will be committed at the current commit point. For a discussion about possible commit points, see the SqlWorkflowPersistenceService class.

Applies to