ModelMetadata.DataTypeName Property

Definition

Gets or sets the name of the data type.

C#
public virtual string DataTypeName { get; set; }

Property Value

The name of the data type.

Remarks

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.

Applies to

产品 版本
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1