DataTypeAttribute.DataType 属性

定义

获取与数据字段关联的类型。Gets the type that is associated with the data field.

public:
 property System::ComponentModel::DataAnnotations::DataType DataType { System::ComponentModel::DataAnnotations::DataType get(); };
public System.ComponentModel.DataAnnotations.DataType DataType { get; }
member this.DataType : System.ComponentModel.DataAnnotations.DataType
Public ReadOnly Property DataType As DataType

属性值

DataType

DataType 值之一。One of the DataType values.

适用于