PropertyMetadataBuilderExtensions.UrlDataType<T>(PropertyMetadataBuilder<T, String>, Func<String>) Method
Configures the property editor to display URL values.
Namespace: DevExpress.Mvvm.DataAnnotations
Assembly: DevExpress.Mvvm.v24.1.dll
NuGet Packages: DevExpress.Mvvm, DevExpress.Win.Navigation
Declaration
public static PropertyMetadataBuilder<T, string> UrlDataType<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 UrlDataType<T> property is recognized by the GridControl, TreeListControl, DataLayoutControl and PropertyGridControl.
Using the UrlDataType<T> method is equivalent to assigning the [DataType(DataType.Url)] data annotation attribute to a data property.
See Also