WorkflowInvoker(Activity) Constructor
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.
Initializes a new instance of the WorkflowInvoker class.
public:
WorkflowInvoker(System::Activities::Activity ^ workflow);
public WorkflowInvoker (System.Activities.Activity workflow);
new System.Activities.WorkflowInvoker : System.Activities.Activity -> System.Activities.WorkflowInvoker
Public Sub New (workflow As Activity)
Parameters
- workflow
- Activity
The workflow definition of the workflow to be invoked by this instance of the WorkflowInvoker class.
Examples
The following example invokes a workflow consisting of a single WriteLine activity.
Activity wf = new WriteLine
{
Text = "Hello World."
};
WorkflowInvoker invoker = new WorkflowInvoker(wf);
invoker.Invoke();
Remarks
WorkflowInvoker contains both instance and static methods for invoking workflows synchronously, and instance methods for invoking workflows asynchronously.
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.