IWorkBatch.Add(IPendingWork, Object) 方法

定义

将挂起的工作项添加到工作批处理。

public:
 void Add(System::Workflow::Runtime::IPendingWork ^ work, System::Object ^ workItem);
public void Add(System.Workflow.Runtime.IPendingWork work, object workItem);
abstract member Add : System.Workflow.Runtime.IPendingWork * obj -> unit
Public Sub Add (work As IPendingWork, workItem As Object)

参数

work
IPendingWork

IPendingWork . workItem. 关联的对象

workItem
Object

要对其执行工作的对象。

注解

此方法用于将挂起的工作项添加到工作批处理。 workItem添加到批处理的对象与work实现接口的对象IPendingWork相关联。 将调用此 IPendingWork 对象提供的方法来处理最终提交 workItem。 服务使用此方法将挂起的工作添加到 .WorkBatch

适用于