GYearMonth.Parse MethodGYearMonth.Parse MethodGYearMonth::Parse Method

Converts the lexical representation of an xs:gYearMonth to its GYearMonthGYearMonthGYearMonth equivalent.

Syntax

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

Parameters

value

Type: System.StringSystem.StringSystem::String^

The lexical representation of the xs:gYearMonth to convert.

Return Value

Type: XmlPrime.GYearMonthXmlPrime.GYearMonthXmlPrime::GYearMonth

The GYearMonthGYearMonthGYearMonth value equivalent to the xs:gYearMonth represented by value.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptionvalue is null a null reference (Nothing in Visual Basic) nullptr.
FormatExceptionFormatExceptionFormatExceptionvalue is not a valid lexical representation of an xs:gYearMonth.
OverflowExceptionOverflowExceptionOverflowExceptionThe year is outside the range MinYearMinYearMinYear to MaxYearMaxYearMaxYear