DayTimeDuration.Parse MethodDayTimeDuration.Parse MethodDayTimeDuration::Parse Method

Converts a lexical representation of an xs:dayTimeDuration to its DayTimeDurationDayTimeDurationDayTimeDuration equivalent.

Syntax

Public Shared Function Parse( _
    value As String _
) As DayTimeDuration
public static DayTimeDuration Parse(
    string value
)
public:
static DayTimeDuration Parse(
    String^ value
)
 

Parameters

value

Type: System.StringSystem.StringSystem::String^

The lexical representation of an xs:dayTimeDuration to convert.

Return Value

Type: XmlPrime.DayTimeDurationXmlPrime.DayTimeDurationXmlPrime::DayTimeDuration

The DayTimeDurationDayTimeDurationDayTimeDuration equivalent to the xs:dayTimeDuration represented by value.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptionvalue is null a null reference (Nothing in Visual Basic) nullptr.
FormatExceptionFormatExceptionFormatException value is not a valid lexical value of an xs:dayTimeDuration.
OverflowExceptionOverflowExceptionOverflowException value represents a duration less than MinValueMinValueMinValue or greater than MaxValueMaxValueMaxValue.