DateTimeWithZone Constructor (DateWithZone, TimeWithZone)DateTimeWithZone Constructor (DateWithZone, TimeWithZone)DateTimeWithZone Constructor (DateWithZone, TimeWithZone)
Initializes a new instance of the DateTimeWithZoneDateTimeWithZoneDateTimeWithZone structure
with the specified DateWithZoneDateWithZoneDateWithZone and TimeWithZoneTimeWithZoneTimeWithZone.
Syntax
Public Sub New ( _ date As DateWithZone, _ time As TimeWithZone _ )
public DateTimeWithZone( DateWithZone date, TimeWithZone time )
public: DateTimeWithZone( DateWithZone date, TimeWithZone time )
Parameters
- date
Type: XmlPrime.DateWithZoneXmlPrime.DateWithZoneXmlPrime::DateWithZone
The date component of the DateTimeWithZoneDateTimeWithZoneDateTimeWithZone.
- time
Type: XmlPrime.TimeWithZoneXmlPrime.TimeWithZoneXmlPrime::TimeWithZone
The time component of the DateTimeWithZoneDateTimeWithZoneDateTimeWithZone.
Exceptions
Exception | Condition |
ArgumentExceptionArgumentExceptionArgumentException | The time zones of date and time do not match. |