FlowSwitch<T>.Expression Property
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.
The expression to evaluate against the collection of Cases.
public:
property System::Activities::Activity<T> ^ Expression { System::Activities::Activity<T> ^ get(); void set(System::Activities::Activity<T> ^ value); };
public System.Activities.Activity<T> Expression { get; set; }
member this.Expression : System.Activities.Activity<'T> with get, set
Public Property Expression As Activity(Of T)
Property Value
Activity<T>
The expression to evaluate.
Examples
The following code sample demonstrates setting the Expression property of a FlowSwitch<T> node. This example is from the Fault Handling in a Flowchart Activity Using TryCatch sample.
FlowSwitch<string> promoCodeSwitch = new FlowSwitch<string>
{
Expression = promo,
Cases =
{
{ "Single", singleStep },
{ "MNK", mnkStep },
{ "MWK", mwkStep }
},
Default = discountDefault
};
Applies to
Συνεργαστείτε μαζί μας στο GitHub
Μπορείτε να βρείτε την πηγή για αυτό το περιεχόμενο στο GitHub, όπου μπορείτε επίσης να δημιουργήσετε και να εξετάσετε ζητήματα και αιτήματα έλξης. Για περισσότερες πληροφορίες, ανατρέξτε στον οδηγό συνεργατών.