共用方式為


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

要驗證的活動內容。

適用於