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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om