DataColumn.DateTimeMode DataColumn.DateTimeMode DataColumn.DateTimeMode DataColumn.DateTimeMode Property

定義

取得或設定資料行的 DateTimeModeGets 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

屬性值

指定之資料行的 DataSetDateTimeThe DataSetDateTime for the specified column.

備註

在資料列新增DataColumn至之後, Unspecified UnspecifiedLocal 無法修改,除非從和DateTimeMode修改,反之亦然。The DateTimeMode cannot be modified after rows are added to a DataColumn, except for modifying from Unspecified and UnspecifiedLocal or vice-versa. 除了這兩UnspecifiedLocalUnspecified選項之間的差異之外,也允許從轉換為,反之亦然,不會影響儲存體。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.

適用於

另請參閱