Rule Constructor (String^, RuleCondition^, IList<RuleAction^>^, IList<RuleAction^>^)
.NET Framework (current version)
Initializes a new instance of the Rule class using the name of the Rule, the rule condition, a list of THEN actions, and a list of ELSE actions.
Assembly: System.Workflow.Activities (in System.Workflow.Activities.dll)
public:
Rule(
String^ name,
RuleCondition^ condition,
IList<RuleAction^>^ thenActions,
IList<RuleAction^>^ elseActions
)
Parameters
- name
-
Type:
System::String^
The name of the Rule.
- condition
-
Type:
System.Workflow.Activities.Rules::RuleCondition^
The RuleCondition for the Rule.
- thenActions
-
Type:
System.Collections.Generic::IList<RuleAction^>^
A collection of RuleAction objects to evaluate if the condition is true.
- elseActions
-
Type:
System.Collections.Generic::IList<RuleAction^>^
A collection of RuleAction objects to evaluate whether the condition is false.
.NET Framework
Available since 3.0
Available since 3.0
Show: