Export (0) Print
Expand All

Switch.Cases Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the dictionary of potential execution paths. Each entry contains a key and an activity that is executed when the result of the expression matches the key.

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

public IDictionary<Object, Activity> Cases { get; }

Property Value

Type: System.Collections.Generic.IDictionary<Object, Activity>
The execution paths.

When the activity executes, the case that is executed is the first case whose key matches the Expression property.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2014 Microsoft