RuleExpressionWalker.Validate(RuleValidation, CodeExpression, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Verifies that the expression and child nodes are configured correctly and has no errors.
public:
static System::Workflow::Activities::Rules::RuleExpressionInfo ^ Validate(System::Workflow::Activities::Rules::RuleValidation ^ validation, System::CodeDom::CodeExpression ^ expression, bool isWritten);
public static System.Workflow.Activities.Rules.RuleExpressionInfo Validate (System.Workflow.Activities.Rules.RuleValidation validation, System.CodeDom.CodeExpression expression, bool isWritten);
static member Validate : System.Workflow.Activities.Rules.RuleValidation * System.CodeDom.CodeExpression * bool -> System.Workflow.Activities.Rules.RuleExpressionInfo
Public Shared Function Validate (validation As RuleValidation, expression As CodeExpression, isWritten As Boolean) As RuleExpressionInfo
Parameters
- validation
- RuleValidation
The RuleValidation to manage the validation process.
- expression
- CodeExpression
The CodeExpression to evaluate.
- isWritten
- Boolean
true
if fields and properties written by a RuleAction are stored in by RuleAnalysis; otherwise, false
.
Returns
The RuleExpressionInfo for the CodeExpression.
Exceptions
validation
is a null reference (Nothing
in Visual Basic).
The expression
is null and the errors collection on the RuleValidation object is a null reference (Nothing
).