GYear.TryParse MethodGYear.TryParse MethodGYear::TryParse Method
Converts a lexical representation of an
xs:gYear to its GYearGYearGYear equivalent.
A return value indicates whether the conversion succeeded or failed.
Parameters
- value
Type: System.StringSystem.StringSystem::String^
The lexical representation of an
xs:gYearto convert.- result
Type: out XmlPrime.GYearByRef XmlPrime.GYearXmlPrime::GYear%
When this method returns, contains the GYearGYearGYear value equivalent to the
xs:gYearrepresented by value if parsing succeeded. Otherwise the value is undefined.
Return Value
Type: System.BooleanSystem.BooleanSystem::Boolean
trueTruetrue if the conversion succeeded; otherwise falseFalsefalse.
Exceptions
| Exception | Condition |
| ArgumentNullExceptionArgumentNullExceptionArgumentNullException | value is null
a null reference (Nothing in Visual Basic)
nullptr. |
