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>
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))
參數
- condition
- RuleCondition
- thenActions
- IList<RuleAction>
如果條件為 true 時,待評估的 RuleAction 物件集合。
- elseActions
- IList<RuleAction>
RuleAction 物件集合,用於評估條件是否為 false。