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:gYearMonthto convert.
Return Value
Type: XmlPrime.GYearMonthXmlPrime.GYearMonthXmlPrime::GYearMonth
The GYearMonthGYearMonthGYearMonth value equivalent to the xs:gYearMonth 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 representation of an xs:gYearMonth. |
| OverflowExceptionOverflowExceptionOverflowException | The year is outside the range MinYearMinYearMinYear to MaxYearMaxYearMaxYear |
