Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
179 lines (176 sloc) 9.9 KB
<Type Name="DataSetDateTime" FullName="System.Data.DataSetDateTime">
<TypeSignature Language="C#" Value="public enum DataSetDateTime" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed DataSetDateTime extends System.Enum" />
<TypeSignature Language="DocId" Value="T:System.Data.DataSetDateTime" />
<TypeSignature Language="VB.NET" Value="Public Enum DataSetDateTime" />
<TypeSignature Language="C++ CLI" Value="public enum class DataSetDateTime" />
<TypeSignature Language="F#" Value="type DataSetDateTime = " />
<AssemblyInfo>
<AssemblyName>System.Data</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Data.Common</AssemblyName>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
<AssemblyVersion>4.2.1.0</AssemblyVersion>
<AssemblyVersion>4.2.2.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Enum</BaseTypeName>
</Base>
<Docs>
<summary>Describes the serialization format for <see cref="T:System.DateTime" /> columns in a <see cref="T:System.Data.DataSet" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
<xref:System.Data.DataSetDateTime> cannot be set on non-<xref:System.DateTime> columns. Setting the <xref:System.Data.DataColumn.DateTimeMode%2A> property with the default value UnspecifiedLocal on non-<xref:System.DateTime> columns is permitted. Modifying the column data type from <xref:System.DateTime> to any other type resets the <xref:System.Data.DataColumn.DateTimeMode%2A> to the default value UnspecifiedLocal.
Checking schema for merging, Relations, and ForeignKeyConstraints can be performed between <xref:System.DateTime> columns with matching <xref:System.Data.DataColumn.DateTimeMode%2A> 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`<xref:System.Data.DataColumn.DateTimeMode%2A>.
]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName="Local">
<MemberSignature Language="C#" Value="Local" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Data.DataSetDateTime Local = int32(1)" />
<MemberSignature Language="DocId" Value="F:System.Data.DataSetDateTime.Local" />
<MemberSignature Language="VB.NET" Value="Local" />
<MemberSignature Language="C++ CLI" Value="Local" />
<MemberSignature Language="F#" Value="Local = 1" Usage="System.Data.DataSetDateTime.Local" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Data.Common</AssemblyName>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
<AssemblyVersion>4.2.1.0</AssemblyVersion>
<AssemblyVersion>4.2.2.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Data.DataSetDateTime</ReturnType>
</ReturnValue>
<MemberValue>1</MemberValue>
<Docs>
<summary>
<see langword="DateTime" /> is always stored in Local. If <see cref="F:System.Data.DataSetDateTime.Utc" /> or <see cref="F:System.Data.DataSetDateTime.Unspecified" /> is assigned to a column in this mode, it is first converted into Local. Serialization in this mode is always performed in Local. There is an offset during serialization.</summary>
</Docs>
</Member>
<Member MemberName="Unspecified">
<MemberSignature Language="C#" Value="Unspecified" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Data.DataSetDateTime Unspecified = int32(2)" />
<MemberSignature Language="DocId" Value="F:System.Data.DataSetDateTime.Unspecified" />
<MemberSignature Language="VB.NET" Value="Unspecified" />
<MemberSignature Language="C++ CLI" Value="Unspecified" />
<MemberSignature Language="F#" Value="Unspecified = 2" Usage="System.Data.DataSetDateTime.Unspecified" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Data.Common</AssemblyName>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
<AssemblyVersion>4.2.1.0</AssemblyVersion>
<AssemblyVersion>4.2.2.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Data.DataSetDateTime</ReturnType>
</ReturnValue>
<MemberValue>2</MemberValue>
<Docs>
<summary>
<see langword="DateTime" /> is always stored in Unspecified. If <see cref="F:System.Data.DataSetDateTime.Local" /> or <see cref="F:System.Data.DataSetDateTime.Utc" /> is assigned to a column in this mode, it is first converted into <see cref="F:System.Data.DataSetDateTime.Unspecified" />. Serialization in this mode does not cause an offset.</summary>
</Docs>
</Member>
<Member MemberName="UnspecifiedLocal">
<MemberSignature Language="C#" Value="UnspecifiedLocal" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Data.DataSetDateTime UnspecifiedLocal = int32(3)" />
<MemberSignature Language="DocId" Value="F:System.Data.DataSetDateTime.UnspecifiedLocal" />
<MemberSignature Language="VB.NET" Value="UnspecifiedLocal" />
<MemberSignature Language="C++ CLI" Value="UnspecifiedLocal" />
<MemberSignature Language="F#" Value="UnspecifiedLocal = 3" Usage="System.Data.DataSetDateTime.UnspecifiedLocal" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Data.Common</AssemblyName>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
<AssemblyVersion>4.2.1.0</AssemblyVersion>
<AssemblyVersion>4.2.2.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Data.DataSetDateTime</ReturnType>
</ReturnValue>
<MemberValue>3</MemberValue>
<Docs>
<summary>
<see langword="DateTime" /> is stored in Unspecified. If <see cref="F:System.Data.DataSetDateTime.Local" /> or <see cref="F:System.Data.DataSetDateTime.Utc" /> is assigned to a column in this mode, it is first converted into <see cref="F:System.Data.DataSetDateTime.Unspecified" />. Serialization in this mode causes offset. This is the default behavior and is backward compatible. This option should be thought of as being Unspecified in storage but applying an offset that is similar to <see cref="F:System.Data.DataSetDateTime.Local" /> during serialization.</summary>
</Docs>
</Member>
<Member MemberName="Utc">
<MemberSignature Language="C#" Value="Utc" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Data.DataSetDateTime Utc = int32(4)" />
<MemberSignature Language="DocId" Value="F:System.Data.DataSetDateTime.Utc" />
<MemberSignature Language="VB.NET" Value="Utc" />
<MemberSignature Language="C++ CLI" Value="Utc" />
<MemberSignature Language="F#" Value="Utc = 4" Usage="System.Data.DataSetDateTime.Utc" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Data.Common</AssemblyName>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
<AssemblyVersion>4.2.1.0</AssemblyVersion>
<AssemblyVersion>4.2.2.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Data.DataSetDateTime</ReturnType>
</ReturnValue>
<MemberValue>4</MemberValue>
<Docs>
<summary>
<see langword="DateTime" /> is stored in Universal Coordinated Time (UTC). If <see cref="F:System.Data.DataSetDateTime.Local" /> or <see cref="F:System.Data.DataSetDateTime.Unspecified" /> is assigned to a column in this mode, it is first converted into <see langword="Utc" /> format. Serialization in this mode is always performed in <see langword="Utc" />. There is no offset during serialization.</summary>
</Docs>
</Member>
</Members>
</Type>
You can’t perform that action at this time.