PropertyMetadataBuilderExtensions.EmailAddressDataType<T>(PropertyMetadataBuilder<T, String>, Func<String>) Method
Configures the property editor to display email address values.
Namespace: DevExpress.Mvvm.DataAnnotations
Assembly: DevExpress.Mvvm.v25.1.dll
NuGet Packages: DevExpress.Mvvm, DevExpress.Win.Navigation
Declaration
public static PropertyMetadataBuilder<T, string> EmailAddressDataType<T>(
this PropertyMetadataBuilder<T, string> builder,
Func<string> errorMessageAccessor = null
)
Parameters
| Name | Type | Description |
|---|---|---|
| builder | PropertyMetadataBuilder<T, String> | A property metadata builder. |
Optional Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| errorMessageAccessor | Func<String> | null | A function that returns an error message. |
Type Parameters
| Name |
|---|
| T |
Returns
| Type | Description |
|---|---|
| PropertyMetadataBuilder<T, String> | The property metadata builder instance. |
Remarks
The EmailAddressDataType<T> property is recognized by the GridControl, TreeListControl, DataLayoutControl and PropertyGridControl.
Using the EmailAddressDataType<T> method is equivalent to assigning the [EmailAddress] data annotation attribute to a data property.
See Also