SqlWorkflowPersistenceService.IPendingWork.Commit 方法

定义

将序列化状态对象的 ICollection 写入数据库。

 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

参数

transaction
Transaction

Transaction

items
ICollection

要写入数据库的工作项的 ICollection

实现

例外

尝试写入数据库时发生错误。

注解

包含在 items 中的序列化状态对象会写入数据库。

适用于