Custom validations override this method to provide validation behavior.
This method returns true if and only if value
passes its test.
If validation fails, a description of the failure should be added to errors
.
errors
is guaranteed to be a valid List
when this method is invoked during validation.
This method is not run when value
is null.
The type of value
will have already been type-checked prior to executing this method.
Both operation
and property
are informational only. This method will only be invoked
according to runOnInsert and runOnUpdate, i.e., if this validator's
runOnUpdate is false, operation
will never be ValidateOperation.update.
Source
bool validate(ValidateOperation operation, ManagedAttributeDescription property, T value, List<String> errors) { return false; }