RuleValidation Constructor (Type, ITypeProvider)


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

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

public RuleValidation(
	Type thisType,
	ITypeProvider typeProvider


Type: System.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.

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.

Exception Condition

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

.NET Framework
Available since 3.0
Return to top