This documentation is archived and is not being maintained.

System.ComponentModel.DataAnnotations Namespace

Updated: July 2008

The System.ComponentModel.DataAnnotations namespace provides attribute classes that are used to define metadata for ASP.NET Dynamic Data controls.

Public classAssociatedMetadataTypeTypeDescriptionProviderExtends the metadata information for a class by adding attributes and property information that is defined in an associated class.
Public classDataTypeAttributeSpecifies the name of an additional type to associate with a data field.
Public classDisplayColumnAttributeSpecifies the column that is displayed in the referred table as a foreign-key column.
Public classDisplayFormatAttributeSpecifies how data fields are displayed and formatted by ASP.NET Dynamic Data.
Public classMetadataTypeAttributeSpecifies the metadata class to associate with a data model class.
Public classRangeAttributeSpecifies the numeric range constraints for the value of a data field in Dynamic Data.
Public classRegularExpressionAttributeSpecifies that a data field value in ASP.NET Dynamic Data must match the specified regular expression.
Public classRequiredAttributeSpecifies that a data field value is required.
Public classScaffoldColumnAttributeSpecifies whether a column is exposed by the scaffolding mechanism.
Public classScaffoldTableAttributeSpecifies whether a class or data table uses scaffolding.
Public classStringLengthAttributeSpecifies the maximum length of characters that are allowed in a data field.
Public classUIHintAttributeSpecifies the template or user-defined control Dynamic Data uses to display a data field.
Public classValidationAttributeBase class for all validation attributes.
Public classValidationExceptionRepresents the exception that occurs during validation of a data field when the ValidationAttribute class is used.

Public enumerationDataTypeRepresents an enumeration of the data types associated with data fields and parameters.




July 2008

Added topic for new namespace.

SP1 feature change.