Upraviť

Zdieľať cez


RuleValidation Constructors

Definition

Initializes a new instance of the RuleValidation class.

Overloads

RuleValidation(Type, ITypeProvider)

Initializes a new instance of the RuleValidation class using the Type of the Rule.

RuleValidation(Activity, ITypeProvider, Boolean)

Initializes a new instance of the RuleValidation class using the specified Activity and the type provider.

RuleValidation(Type, ITypeProvider)

Initializes a new instance of the RuleValidation class using the Type of the 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)

Parameters

thisType
Type

The type of the object that this RuleCondition or RuleSet will be executed against. Normally it is the workflow, but it can be any valid type.

typeProvider
ITypeProvider

An optional ITypeProvider implementation that is used to determine what Types are available in the condition. If one is not specified, only types in the assembly specified by the activity and any assemblies it references are available.

Exceptions

thisType is a null reference (Nothing in Visual Basic).

Applies to

RuleValidation(Activity, ITypeProvider, Boolean)

Initializes a new instance of the RuleValidation class using the specified Activity and the type provider.

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)

Parameters

activity
Activity

The Activity in which context the RuleCondition or RuleSet is run. In most cases, this will be the workflow object.

typeProvider
ITypeProvider

An optional ITypeProvider implementation that is used to determine what Types are available in the condition. If one is not specified, only types in the assembly specified by the activity and any assemblies it references are available.

checkStaticType
Boolean

If true, the types used by any RuleCondition or RuleSet that are validated with this object must be in the restricted list of types allowed.

Exceptions

activity is a null reference (Nothing in Visual Basic).

Remarks

This constructor is used at design time.

Applies to