DataColumn.DateTimeMode 属性
定义
获取或设置列的 DateTimeMode。Gets or sets the DateTimeMode for the column.
public:
property System::Data::DataSetDateTime DateTimeMode { System::Data::DataSetDateTime get(); void set(System::Data::DataSetDateTime value); };
public System.Data.DataSetDateTime DateTimeMode { get; set; }
member this.DateTimeMode : System.Data.DataSetDateTime with get, set
Public Property DateTimeMode As DataSetDateTime
属性值
所指定的列的 DataSetDateTime。The DataSetDateTime for the specified column.
注解
在将 DateTimeMode 行添加到后,不能修改 DataColumn ,除非从和进行修改, Unspecified UnspecifiedLocal 反之亦然。The DateTimeMode cannot be modified after rows are added to a DataColumn, except for modifying from Unspecified and UnspecifiedLocal or vice-versa. 允许从到的修改 UnspecifiedLocal Unspecified ,反之亦然,反之亦然,因为这两个选项之间的差异仅在序列化期间,不会影响存储。The modification from UnspecifiedLocal to Unspecified and vice-versa is allowed as the difference between these two options is only during serialization and does not affect the storage.