Class InvalidZonedDateTimeException
- Namespace
- LfrlAnvil.Chrono.Exceptions
- Assembly
- LfrlAnvil.Chrono.dll
Represents an error that occurred due to an invalid DateTime within a chosen TimeZoneInfo.
public class InvalidZonedDateTimeException : ArgumentException, ISerializable
- Inheritance
-
InvalidZonedDateTimeException
- Implements
- Inherited Members
Constructors
InvalidZonedDateTimeException(DateTime, TimeZoneInfo)
Creates a new InvalidZonedDateTimeException instance.
public InvalidZonedDateTimeException(DateTime dateTime, TimeZoneInfo timeZone)
Parameters
dateTime
DateTimeInvalid date time.
timeZone
TimeZoneInfoTarget time zone.
Properties
DateTime
Invalid date time.
public DateTime DateTime { get; }
Property Value
TimeZone
Target time zone.
public TimeZoneInfo TimeZone { get; }