System.ComponentModel.DataAnnotations.ValidationAttribute
Serves as the base class for all validation attributes.
Gets or sets an error message to associate with a validation control if validation fails.
Gets or sets the error message resource name to use in order to look up the ErrorMessageResourceType property value if validation fails.
Gets or sets the resource type to use for error-message lookup if validation fails.
Gets the localized validation error message.
Gets a value that indicates whether the attribute requires validation context.
protected ValidationAttribute()
Initializes a new instance of the ValidationAttribute class.
Initializes a new instance of the ValidationAttribute class by using the error message to associate with a validation control.
Initializes a new instance of the ValidationAttribute class by using the function that enables access to validation resources.
Applies formatting to an error message, based on the data field where the error occurred.
Checks whether the specified value is valid with respect to the current validation attribute.
Determines whether the specified value of the object is valid.
Validates the specified value with respect to the current validation attribute.
Validates the specified object.
Validates the specified object.