Редагувати

Поділитися через


WhileActivity Constructors

Definition

Initializes a new instance of the WhileActivity class.

Overloads

WhileActivity()

Initializes a new instance of the WhileActivity class.

WhileActivity(String)

Initializes a new instance of the WhileActivity class using the name of the activity.

WhileActivity()

Initializes a new instance of the WhileActivity class.

public:
 WhileActivity();
public WhileActivity ();
Public Sub New ()

Examples

The following code example demonstrates how to create a new instance of the WhileActivity class and add the ParallelActivity class to the WhileActivity class. This code example is part of the WhileAndParallel SDK Sample from the WhileAndParallelWorkflow.Designer.cs file. For more information, see Using While and Parallel.

workflowRuntime.WorkflowUnloaded += OnWorkflowUnload;
AddHandler currentWorkflowRuntime.WorkflowUnloaded, AddressOf OnWorkflowUnloaded

See also

Applies to

WhileActivity(String)

Initializes a new instance of the WhileActivity class using the name of the activity.

public:
 WhileActivity(System::String ^ name);
public WhileActivity (string name);
new System.Workflow.Activities.WhileActivity : string -> System.Workflow.Activities.WhileActivity
Public Sub New (name As String)

Parameters

name
String

The user-defined name of the activity.

See also

Applies to