語言

RuleValidation 建構函式

定義

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

多載

名稱 Description
RuleValidation(Type, ITypeProvider)

利用 RuleValidation 的 Type初始化類別的新Rule實例。

RuleValidation(Activity, ITypeProvider, Boolean)

使用指定的 RuleValidation Config 和型別提供者初始化該類別的新實例Activity。

RuleValidation(Type, ITypeProvider)

利用 RuleValidation 的 Type初始化類別的新Rule實例。

public:
 RuleValidation(Type ^ thisType, System::Workflow::ComponentModel::Compiler::ITypeProvider ^ typeProvider);
public RuleValidation(Type thisType, System.Workflow.ComponentModel.Compiler.ITypeProvider typeProvider);
new System.Workflow.Activities.Rules.RuleValidation : Type * System.Workflow.ComponentModel.Compiler.ITypeProvider -> System.Workflow.Activities.Rules.RuleValidation
Public Sub New (thisType As Type, typeProvider As ITypeProvider)

參數

thisType
Type

執行此 RuleCondition or RuleSet 的物件類型。 通常是工作流程,但也可以是任何有效類型。

typeProvider
ITypeProvider

一個可選 ITypeProvider 的實作,用來判斷 Type條件中有哪些 s。 若未指定,則僅能使用活動指定的組裝類型及其參考的組裝。

例外狀況

是一個空參考()。

適用於

RuleValidation(Activity, ITypeProvider, Boolean)

使用指定的 RuleValidation Config 和型別提供者初始化該類別的新實例Activity。

public:
 RuleValidation(System::Workflow::ComponentModel::Activity ^ activity, System::Workflow::ComponentModel::Compiler::ITypeProvider ^ typeProvider, bool checkStaticType);
public RuleValidation(System.Workflow.ComponentModel.Activity activity, System.Workflow.ComponentModel.Compiler.ITypeProvider typeProvider, bool checkStaticType);
new System.Workflow.Activities.Rules.RuleValidation : System.Workflow.ComponentModel.Activity * System.Workflow.ComponentModel.Compiler.ITypeProvider * bool -> System.Workflow.Activities.Rules.RuleValidation
Public Sub New (activity As Activity, typeProvider As ITypeProvider, checkStaticType As Boolean)

參數

activity
Activity

Activity在何種情境下運行或RuleConditionRuleSet操作。 在大多數情況下,這會是工作流程物件。

typeProvider
ITypeProvider

一個可選 ITypeProvider 的實作,用來判斷 Type條件中有哪些 s。 若未指定,則僅能使用活動指定的組裝類型及其參考的組裝。

checkStaticType
Boolean

若 true,任何 RuleCondition 或 RuleSet 與此物件驗證的型別必須在允許的受限型別清單中。

例外狀況

是一個空參考()。

備註

此建造機在設計時使用。

適用於