Export (0) Print
Expand All

RuleValidation Constructor (Activity, ITypeProvider, Boolean)

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

Namespace:  System.Workflow.Activities.Rules
Assembly:  System.Workflow.Activities (in System.Workflow.Activities.dll)

public RuleValidation(
	Activity activity,
	ITypeProvider typeProvider,
	bool checkStaticType
)

Parameters

activity
Type: System.Workflow.ComponentModel.Activity

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

typeProvider
Type: System.Workflow.ComponentModel.Compiler.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
Type: System.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.

ExceptionCondition
ArgumentNullException

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

This constructor is used at design time.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0
Show:
© 2015 Microsoft