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.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptionvalue 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.