IPendingWork.MustCommit(ICollection) Método

Definição

Permite que os itens no lote de trabalho declarem se devem ser imediatamente confirmados.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

Parâmetros

items
ICollection

Uma ICollection de itens de trabalho.An ICollection of work items.

Retornos

Boolean

true se qualquer item da coleção deve ser imediatamente confirmado; caso contrário, false.true if any item in the collection must be committed immediately; otherwise, false.

Comentários

Se MustCommit retornar false , o trabalho poderá ser adiado para um ponto de confirmação futuro.If MustCommit returns false, the work can be postponed to a future commit point. Se qualquer um dos itens precisar ser confirmado, o retorno true e todos os itens serão confirmados no ponto de confirmação atual.If any of the items must be committed, then return true and all items will be committed at the current commit point. Para obter uma discussão sobre possíveis pontos de confirmação, consulte a SqlWorkflowPersistenceService classe.For a discussion about possible commit points, see the SqlWorkflowPersistenceService class.

Aplica-se a