語言

Rule 建構函式

定義

初始化 Rule 類別的新執行個體。

多載

名稱 Description
Rule()

初始化 Rule 類別的新執行個體。

Rule(String)

使用 該類別的名稱Rule初始化該類別的新實例Rule。

Rule(String, RuleCondition, IList<RuleAction>)

使用規則條件名稱Rule、THEN 動作清單初始化該Rule類別的新實例。

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

初始化類別的新實例 Rule ,使用 Rule規則條件名稱、THEN 動作清單及 ELSE 動作清單。

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

該 RuleCondition 為 Rule。

thenActions
IList<RuleAction>

一組 RuleAction 用來評估條件是否為真的物件。

適用於

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

初始化類別的新實例 Rule ,使用 Rule規則條件名稱、THEN 動作清單及 ELSE 動作清單。

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

該 RuleCondition 為 Rule。

thenActions
IList<RuleAction>

一組 RuleAction 物件用來評估條件是否為真。

elseActions
IList<RuleAction>

一組 RuleAction 物件用來評估條件是否為假。

適用於