New to Telerik UI for WinForms? Start a free 30-day trial

Indicates that time-zone data is malformed or cannot be used to construct a valid time zone.

Definition

Constructors

Initializes an exception without a message.

C#
public InvalidTimeZoneException()

Initializes an exception from serialized data.

C#
protected InvalidTimeZoneException(SerializationInfo info, StreamingContext context)
Parameters:infoSerializationInfo

The serialized exception data.

contextStreamingContext

The serialization context associated with the data.

Initializes an exception with a message and the exception that caused it.

C#
public InvalidTimeZoneException(string message, Exception innerException)
Parameters:messagestring

The message that describes the error.

innerExceptionException

The exception that caused this error.

Initializes an exception with a message describing the invalid time-zone data.

C#
public InvalidTimeZoneException(string message)
Parameters:messagestring

The message that describes the error.