Constraint.OnExecute(NativeActivityContext, Object, ValidationContext) 方法

定义

由派生类实现时,使用指定的本机活动和验证上下文来验证指定的对象。

protected:
 abstract void OnExecute(System::Activities::NativeActivityContext ^ context, System::Object ^ objectToValidate, System::Activities::Validation::ValidationContext ^ objectToValidateContext);
protected abstract void OnExecute (System.Activities.NativeActivityContext context, object objectToValidate, System.Activities.Validation.ValidationContext objectToValidateContext);
abstract member OnExecute : System.Activities.NativeActivityContext * obj * System.Activities.Validation.ValidationContext -> unit
Protected MustOverride Sub OnExecute (context As NativeActivityContext, objectToValidate As Object, objectToValidateContext As ValidationContext)

参数

context
NativeActivityContext

工作流活动执行。

objectToValidate
Object

要验证的活动。

objectToValidateContext
ValidationContext

要验证的活动的上下文。

适用于