共用方式為


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>

RuleAction 物件集合,用於評估條件是否為 true。

適用於

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>

RuleAction 物件集合,用於評估條件是否為 false。

適用於