Constraint.OnExecute(NativeActivityContext, Object, ValidationContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.