Επεξεργασία

Κοινή χρήση μέσω


Constraint.OnExecute(NativeActivityContext, Object, ValidationContext) Method

Definition

When implemented by a derived class, validates the specified object using the specified native activity and validation contexts.

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)

Parameters

context
NativeActivityContext

The workflow activity execution.

objectToValidate
Object

The activity to be validated.

objectToValidateContext
ValidationContext

The context of the activity to be validated.

Applies to