GYear.Parse MethodGYear.Parse MethodGYear::Parse Method

Converts the lexical representation of an xs:gYear to its GYearGYearGYear equivalent.

Syntax

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

Parameters

value

Type: System.StringSystem.StringSystem::String^

The lexical representation of the xs:gYear to convert.

Return Value

Type: XmlPrime.GYearXmlPrime.GYearXmlPrime::GYear

The GYearGYearGYear value equivalent to the xs:gYear 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:gYear.
OverflowExceptionOverflowExceptionOverflowExceptionThe year is outside the range MinYearMinYearMinYear to MaxYearMaxYearMaxYear