共用方式為


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

傳回

RuleExpressionInfoCodeExpression

例外狀況

validation 為 null 參考 (在 Visual Basic 中為 Nothing)。

expression 為 null,RuleValidation 物件的錯誤集合為 null 參考 (Nothing)。

適用於