Switch <T> Activity

Description:

Selects one activity to execute from a number of possible activities based on the value of a given expression.

Inheritance Hierarchy:

System.Object
  System.Activities.Activity
    System.Activities.NativeActivity
      System.Activities.Statements.Switch<T>

Function:

The Switch<T> activity selects one out of several activities to run based on the value of a given expression.

Properties:

Name

Description

Display Name

Switch<T>

You can change the name of an activity to one that describes what it does. A descriptive name can make a workflow easier to interpret and maintain.

Expression

The expression that evaluates to a value of type T.

Default

The activity run when the Expression value does not equal any defined Case key value.

Case(s)

You can define Zero or more Cases that specify a Case key value of type T, and an activity to run if the Expression value equals the Case key value. If you want to have more than one activity in the Case, use a composite activity such as a Sequence or Parallel activity.

Version Information:

Supported from: Geocortex Essentials 3.0.

For more information:

https://msdn.microsoft.com/en-us/library/dd647669.aspx