Switch<T> Constructor (Expression<Func<ActivityContext, T>>)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates a new instance of the Switch<T> class with the specified expression.

Namespace:   System.Activities.Statements
Assembly:  System.Activities (in System.Activities.dll)

public Switch(
	Expression<Func<ActivityContext, T>> expression
)

Parameters

expression
Type: System.Linq.Expressions.Expression<Func<ActivityContext, T>>

The expression to evaluate and compare against the values in the Cases dictionary.

.NET Framework
Available since 4.0
Return to top
Show: