.NET Framework Class Library DataSetDateTime Enumeration
Namespace:
System.Data
Assembly:
System.Data (in System.Data.dll)

Syntax
Public Enumeration DataSetDateTime
public enum DataSetDateTime
public enum class DataSetDateTime

Remarks
DataSetDateTime cannot be set on non-DateTime columns. Setting the DateTimeMode property with the default value UnspecifiedLocall on non-DateTime columns is permitted. Modifying the column data type from DateTime to any other type resets the DateTimeMode to the default value UnspecifiedLocal. Checking schema for merging, Relations, and ForeignKeyConstraints can be performed between DateTime columns with matching DateTimeMode properties. Otherwise the columns should be considered as non-matching on schema. The only exception is between Unspecified and UnspecifiedLocal. It is permitted to have a relation or a ForeignKeyConstraint between two DateTime columns with one in Unspecified and other in UnspecifiedLocal DateTimeMode.

Version Information
.NET FrameworkSupported in: 4, 3.5, 3.0, 2.0 .NET Framework Client ProfileSupported in: 4, 3.5 SP1

Platforms
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

See Also
|
Biblioteca de clases de .NET Framework DataSetDateTime (Enumeración) Describe el formato de serialización para las columnas DateTime de un objeto DataSet.
Espacio de nombres:
System.Data
Ensamblado:
System.Data (en System.Data.dll)

Sintaxis
Public Enumeration DataSetDateTime
public enum DataSetDateTime
public enum class DataSetDateTime

Comentarios
No se puede establecer DataSetDateTime en las columnas que no sean DateTime. En cambio, sí está permitido establecer la propiedad DateTimeMode con el valor predeterminado UnspecifiedLocal en las columnas que no sean DateTime. Si se modifica el tipo de datos de columna de DateTime a cualquier otro tipo, se restablece DateTimeMode al valor predeterminado UnspecifiedLocal. Se puede realizar una comprobación de esquema para combinar relaciones y restricciones ForeignKeyConstraint entre las columnas DateTime cuyas propiedades DateTimeMode coincidan. De lo contrario se considerará que las columnas no coinciden en un esquema. La única excepción se produce entre Unspecified y UnspecifiedLocal. Es admisible tener una relación o una restricción ForeignKeyConstraint entre dos columnas DateTime en las que la propiedad DateTimeMode sea Unspecified para una y UnspecifiedLocal para la otra.

Información de versión
.NET FrameworkCompatible con: 4, 3.5, 3.0, 2.0 .NET Framework Client ProfileCompatible con: 4, 3.5 SP1

Plataformas
Windows 7, Windows Vista SP1 o posterior, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (no se admite Server Core), Windows Server 2008 R2 (se admite Server Core con SP1 o posterior), Windows Server 2003 SP2
.NET Framework no admite todas las versiones de todas las plataformas. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.

Vea también
|