System.ComponentModel.DataAnnotations Namespace
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.
Provides attribute classes that are used to define metadata for ASP.NET MVC and ASP.NET data controls.
Allowed |
Specifies a list of values that should be allowed in a property. |
Associated |
Extends the metadata information for a class by adding attributes and property information that is defined in an associated class. |
Association |
Specifies that an entity member represents a data relationship, such as a foreign key relationship. |
Base64String |
Specifies that a data field value is a well-formed Base64 string. |
Bindable |
Specifies whether a type is typically used for binding. |
Compare |
Provides an attribute that compares two properties. |
Concurrency |
Specifies that a property participates in optimistic concurrency checks. |
Credit |
Specifies that a data field value is a credit card number. |
Custom |
Specifies a custom validation method that is used to validate a property or class instance. |
Data |
Specifies the name of an additional type to associate with a data field. |
Denied |
Specifies a list of values that should not be allowed in a property. |
Display |
Provides a general-purpose attribute that lets you specify localizable strings for types and members of entity partial classes. |
Display |
Specifies the column that is displayed in the referred table as a foreign-key column. |
Display |
Specifies how data fields are displayed and formatted by ASP.NET Dynamic Data. |
Editable |
Indicates whether a data field is editable. |
Email |
Validates an email address. |
Enum |
Enables a .NET enumeration to be mapped to a data column. |
File |
Validates file name extensions. |
Filter |
Represents an attribute that is used to specify the filtering behavior for a column. |
Key |
Denotes one or more properties that uniquely identify an entity. |
Length |
Specifies the minimum and maximum length of collection/string data allowed in a property. |
Max |
Specifies the maximum length of array or string data allowed in a property. |
Metadata |
Specifies the metadata class to associate with a data model class. |
Min |
Specifies the minimum length of array or string data allowed in a property. |
Phone |
Specifies that a data field value is a well-formed phone number. |
Range |
Specifies the numeric range constraints for the value of a data field. |
Regular |
Specifies that a data field value in ASP.NET Dynamic Data must match the specified regular expression. |
Required |
Specifies that a data field value is required. |
Scaffold |
Specifies whether a class or data column uses scaffolding. |
Scaffold |
Specifies whether a class or data table uses scaffolding. |
String |
Specifies the minimum and maximum length of characters that are allowed in a data field. |
Timestamp |
Specifies the data type of the column as a row version. |
UIHint |
Specifies the template or user control that Dynamic Data uses to display a data field. |
Url |
Provides URL validation. |
Validation |
Serves as the base class for all validation attributes. |
Validation |
Describes the context in which a validation check is performed. |
Validation |
Represents the exception that occurs during validation of a data field when the ValidationAttribute class is used. |
Validation |
Represents a container for the results of a validation request. |
Validator |
Defines a helper class that can be used to validate objects, properties, and methods when it is included in their associated ValidationAttribute attributes. |
IValidatable |
Provides a way for an object to be validated. |
Data |
Represents an enumeration of the data types associated with data fields and parameters. |
.NET feedback
.NET is an open source project. Select a link to provide feedback: