อ่านในภาษาอังกฤษ แก้ไข

แชร์ผ่าน


RuleExpressionWalker.Validate(RuleValidation, CodeExpression, Boolean) Method

Definition

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);

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).

Applies to

ผลิตภัณฑ์ เวอร์ชัน
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1