YearMonthDuration.Parse MethodYearMonthDuration.Parse MethodYearMonthDuration::Parse Method
Converts a lexical representation of an
xs:yearMonthDuration
to its YearMonthDurationYearMonthDurationYearMonthDuration
equivalent.
Syntax
Public Shared Function Parse( _ value As String _ ) As YearMonthDuration
public static YearMonthDuration Parse( string value )
public: static YearMonthDuration Parse( String^ value )
Parameters
- value
Type: System.StringSystem.StringSystem::String^
The lexical representation of an
xs:yearMonthDuration
to convert.
Return Value
Type: XmlPrime.YearMonthDurationXmlPrime.YearMonthDurationXmlPrime::YearMonthDuration
The YearMonthDurationYearMonthDurationYearMonthDuration equivalent to the xs:yearMonthDuration
contained in
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:yearMonthDuration .
|
OverflowExceptionOverflowExceptionOverflowException | value represents a duration less than MinValueMinValueMinValue or greater than MaxValueMaxValueMaxValue. |