Represents data types that are associated with data properties.
Assembly: System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)
|Represents a data type that is not one of the known types.|
|Represents an instant in time, expressed as a date and time of day.|
|Represents a data value.|
|Represents a time value.|
|Represents a continuous time during which an object exists.|
|Represents a phone number value.|
|Represents a currency value.|
|Represents text that is displayed.|
|Represents an HTML file.|
|Represents multiline text.|
|Represents an e-mail address.|
|Represents a password value.|
|Represents a URL value.|
|Represents a URL value that is displayed as an image instead of text.|
You use the enumeration when you apply the DataTypeAttribute attribute to a property. The enumeration contains valid values you use with the DataTypeAttribute attribute. You use the DataTypeAttribute attribute to specify the type of data that is expected for the property beyond the data type of the property. For example, properties named Phone and EmailAddress may both contain string values, but you can specify the expected values by applying the DataTypeAttribute attribute with the and values respectively.
The following example shows how to specify an e-mail address property and a phone number property.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.