TimeZone Constructor (TimeZoneInfo)TimeZone Constructor (TimeZoneInfo)TimeZone Constructor (TimeZoneInfo^)
- XmlPrime 1.0
Initializes a new instance of the TimeZoneTimeZoneTimeZone structure from a TimeZoneTimeZoneTimeZone.
Syntax
Public Sub New ( _ timeZone As TimeZoneInfo _ )
public TimeZone( TimeZoneInfo timeZone )
public: TimeZone( TimeZoneInfo^ timeZone )
Parameters
- timeZone
Type: System.TimeZoneInfoSystem.TimeZoneInfoSystem::TimeZoneInfo^
Exceptions
| Exception | Condition |
| ArgumentExceptionArgumentExceptionArgumentException | timeZone is not a valid time zone. |
| ArgumentNullExceptionArgumentNullExceptionArgumentNullException | timeZone is null
a null reference (Nothing in Visual Basic)
nullptr. |
