SqlWorkflowPersistenceService.IPendingWork.Commit(Transaction, ICollection) 方法

定义

将序列化状态对象的 ICollection 写入数据库。Writes an ICollection of serialized state objects to the database.

 virtual void System.Workflow.Runtime.IPendingWork.Commit(System::Transactions::Transaction ^ transaction, System::Collections::ICollection ^ items) = System::Workflow::Runtime::IPendingWork::Commit;
void IPendingWork.Commit (System.Transactions.Transaction transaction, System.Collections.ICollection items);
abstract member System.Workflow.Runtime.IPendingWork.Commit : System.Transactions.Transaction * System.Collections.ICollection -> unit
override this.System.Workflow.Runtime.IPendingWork.Commit : System.Transactions.Transaction * System.Collections.ICollection -> unit
Sub Commit (transaction As Transaction, items As ICollection) Implements IPendingWork.Commit

参数

items
ICollection

要写入数据库的工作项的 ICollectionThe ICollection of work items to be written to the database.

实现

例外

尝试写入数据库时发生错误。An error occurred while trying to write to the database.

注解

包含在 items 中的序列化状态对象会写入数据库。The serialized state objects that are contained in items are written to the database.

适用于