ModelMetadata.DataTypeName Property

.NET Framework (current version)

Gets or sets the name of the data type.

Namespace:   System.Web.ModelBinding
Assembly:  System.Web (in System.Web.dll)

public virtual string DataTypeName { get; set; }

Property Value

Type: System.String

The name of the data type.

This property can be used to provide additional information about the type of data that is stored by the model. For example, if the ModelType property is set to String, this property might be "EmailAddress" or "Url" — that is, a name that indicates more than just that the data is typed as a string.

.NET Framework
Available since 4.5
Return to top