IWorkBatch.Add(IPendingWork, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a pending work item to a work batch.
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)
Parameters
- work
- IPendingWork
An IPendingWork object associated with the workItem
.
- workItem
- Object
An object on which work is to be performed.
Remarks
This method is used to add pending work items to a work batch. The workItem
object added to the batch is associated with work
, an object that implements the IPendingWork interface. Methods provided by this IPendingWork object will be called to handle the eventual commit of the workItem
. Services use this method to add pending work to the WorkBatch.
Applies to
.NET