InvalidTimeZoneException Constructor ()


Initializes a new instance of the InvalidTimeZoneException class with a system-supplied message.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

Public Sub New

This is the default constructor of the InvalidTimeZoneException class. It initializes the Message property of the new instance to a system-supplied message that describes the error, such as "Exception of type 'System.InvalidTimeZoneException' was thrown." This message is localized for the current system culture.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.5
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top