TimeZone Constructor (TimeSpan)TimeZone Constructor (TimeSpan)TimeZone Constructor (TimeSpan)

Initializes a new instance of the TimeZoneTimeZoneTimeZone structure from a TimeSpanTimeSpanTimeSpan.

Syntax

Public Sub New ( _
    timeZone As TimeSpan _
)
public TimeZone(
    TimeSpan timeZone
)
public:
TimeZone(
    TimeSpan timeZone
)
 

Exceptions

ExceptionCondition
ArgumentExceptionArgumentExceptionArgumentExceptiontimeZone is not a valid time zone.