Duration.Parse MethodDuration.Parse MethodDuration::Parse Method
Parameters
- value
Type: System.StringSystem.StringSystem::String^
The lexical representation of an
xs:durationto convert.
Return Value
Type: XmlPrime.DurationXmlPrime.DurationXmlPrime::Duration
The DurationDurationDuration equivalent to the xs:duration represented by
value.
Exceptions
| Exception | Condition |
| ArgumentNullExceptionArgumentNullExceptionArgumentNullException | value is null
a null reference (Nothing in Visual Basic)
nullptr. |
| FormatExceptionFormatExceptionFormatException |
value is not a valid lexical value of an xs:duration.
|
| OverflowExceptionOverflowExceptionOverflowException | value represents a duration less than MinValueMinValueMinValue or greater than MaxValueMaxValueMaxValue. |
