Rule 构造函数

定义

初始化 Rule 类的新实例。

重载

Rule()

初始化 Rule 类的新实例。

Rule(String)

使用 Rule 的名称初始化 Rule 类的一个新实例。

Rule(String, RuleCondition, IList<RuleAction>)

使用 Rule 的名称、规则条件和 THEN 操作的列表初始化 Rule 类的新实例。

Rule(String, RuleCondition, IList<RuleAction>, IList<RuleAction>)

使用 Rule 的名称、规则条件、THEN 操作的列表和 ELSE 操作的列表初始化 Rule 类的新实例。

Rule()

初始化 Rule 类的新实例。

public:
 Rule();
public Rule ();
Public Sub New ()

适用于

Rule(String)

使用 Rule 的名称初始化 Rule 类的一个新实例。

public:
 Rule(System::String ^ name);
public Rule (string name);
new System.Workflow.Activities.Rules.Rule : string -> System.Workflow.Activities.Rules.Rule
Public Sub New (name As String)

参数

name
String

Rule 的名称。

适用于

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))

参数

name
String

Rule 的名称。

condition
RuleCondition

RuleConditionRule

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))

参数

name
String

Rule 的名称。

condition
RuleCondition

RuleConditionRule

thenActions
IList<RuleAction>

条件为 true 时要计算的 RuleAction 对象的集合。

elseActions
IList<RuleAction>

计算条件是否为 false 的 RuleAction 对象的集合。

适用于