Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
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.

  ClassDescription
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.
  EnumerationDescription
Public enumerationDataTypeRepresents an enumeration of the data types associated with data fields and parameters.

Date

History

Reason

July 2008

Added topic for new namespace.

SP1 feature change.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker