RuleValidation Constructor (Activity, ITypeProvider, Boolean)
Collapse the table of content
Expand the table of content

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


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.

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.

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.

Exception Condition

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

This constructor is used at design time.

.NET Framework
Available since 3.0
Return to top
© 2016 Microsoft