static bool CheckValidationAttributes (System.Reflection.PropertyInfo prop, System.Object obj, out System.String[] errors, string name)

Parameters

NameTypeDescription
prop System.Reflection.PropertyInfo The property whose arguments to test.
obj System.Object Instance of the object this property is of.
out errors System.String[] If returned false, these will be the error messages to display.
name = null string Override the property name in error messages.

Returns

TypeDescription
bool Returns true if all checks have passed or there is no attributes to test, false if there were errors.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.