RuleExpressionWalker.Validate(RuleValidation, CodeExpression, Boolean) 方法

定义

验证表达式和子节点是否配置正确且没有错误。

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

参数

validation
RuleValidation

要管理验证过程的 RuleValidation

expression
CodeExpression

要计算的 CodeExpression

isWritten
Boolean

如果由 RuleAction 写入的字段和属性存储在 RuleAnalysis 中,则为 true;否则为 false

返回

RuleExpressionInfo

RuleExpressionInfoCodeExpression

例外

validation 为空引用(在 Visual Basic 中为 Nothing)。

expression 为空且 RuleValidation 对象上的错误集合为空引用 (Nothing)。

适用于