Kind Property
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets a value that indicates whether the time represented by this instance is based on local time, Coordinated Universal Time (UTC), or neither.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public ReadOnly Property Kind As DateTimeKind
public DateTimeKind Kind { get; }
public:
property DateTimeKind Kind {
DateTimeKind get ();
}
member Kind : DateTimeKind with get
function get Kind () : DateTimeKind
Property Value
Type: System. . :: . .DateTimeKind
One of the enumeration values that indicates what the current time represents. The default is Unspecified.
Remarks
You can explicitly set the Kind property of a new DateTime value to a particular DateTimeKind value by calling the SpecifyKind method.
The Kind property allows a DateTime value to clearly reflect either Coordinated Universal Time (UTC) or the local time. In contrast, the DateTimeOffset structure can unambiguously reflect any time in any time zone as a single point in time.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.