Bagikan melalui


Constraint.OnExecute(NativeActivityContext, Object, ValidationContext) Metode

Definisi

Saat diimplementasikan oleh kelas turunan, memvalidasi objek yang ditentukan menggunakan aktivitas asli dan konteks validasi yang ditentukan.

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)

Parameter

context
NativeActivityContext

Eksekusi aktivitas alur kerja.

objectToValidate
Object

Aktivitas yang akan divalidasi.

objectToValidateContext
ValidationContext

Konteks aktivitas yang akan divalidasi.

Berlaku untuk