Rule 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 Rule 类的新实例。
重载
Rule() |
初始化 Rule 类的新实例。 |
Rule(String) | |
Rule(String, RuleCondition, IList<RuleAction>) |
使用 Rule 的名称、规则条件和 THEN 操作的列表初始化 |
Rule(String, RuleCondition, IList<RuleAction>, IList<RuleAction>) |
使用 Rule 的名称、规则条件、THEN 操作的列表和 ELSE 操作的列表初始化 |
Rule()
Rule(String)
Rule(String, RuleCondition, IList<RuleAction>)
使用 Rule 的名称、规则条件和 THEN 操作的列表初始化 Rule
类的新实例。
public:
Rule(System::String ^ name, System::Workflow::Activities::Rules::RuleCondition ^ condition, System::Collections::Generic::IList<System::Workflow::Activities::Rules::RuleAction ^> ^ thenActions);
public Rule (string name, System.Workflow.Activities.Rules.RuleCondition condition, System.Collections.Generic.IList<System.Workflow.Activities.Rules.RuleAction> thenActions);
new System.Workflow.Activities.Rules.Rule : string * System.Workflow.Activities.Rules.RuleCondition * System.Collections.Generic.IList<System.Workflow.Activities.Rules.RuleAction> -> System.Workflow.Activities.Rules.Rule
Public Sub New (name As String, condition As RuleCondition, thenActions As IList(Of RuleAction))
参数
- condition
- RuleCondition
- thenActions
- IList<RuleAction>
计算条件是否为 true 的 RuleAction 对象的集合。
适用于
Rule(String, RuleCondition, IList<RuleAction>, IList<RuleAction>)
使用 Rule 的名称、规则条件、THEN 操作的列表和 ELSE 操作的列表初始化 Rule
类的新实例。
public:
Rule(System::String ^ name, System::Workflow::Activities::Rules::RuleCondition ^ condition, System::Collections::Generic::IList<System::Workflow::Activities::Rules::RuleAction ^> ^ thenActions, System::Collections::Generic::IList<System::Workflow::Activities::Rules::RuleAction ^> ^ elseActions);
public Rule (string name, System.Workflow.Activities.Rules.RuleCondition condition, System.Collections.Generic.IList<System.Workflow.Activities.Rules.RuleAction> thenActions, System.Collections.Generic.IList<System.Workflow.Activities.Rules.RuleAction> elseActions);
new System.Workflow.Activities.Rules.Rule : string * System.Workflow.Activities.Rules.RuleCondition * System.Collections.Generic.IList<System.Workflow.Activities.Rules.RuleAction> * System.Collections.Generic.IList<System.Workflow.Activities.Rules.RuleAction> -> System.Workflow.Activities.Rules.Rule
Public Sub New (name As String, condition As RuleCondition, thenActions As IList(Of RuleAction), elseActions As IList(Of RuleAction))
参数
- condition
- RuleCondition
- thenActions
- IList<RuleAction>
条件为 true 时要计算的 RuleAction 对象的集合。
- elseActions
- IList<RuleAction>
计算条件是否为 false 的 RuleAction 对象的集合。