GMonth.TryParse MethodGMonth.TryParse MethodGMonth::TryParse Method

Converts a lexical representation of an xs:gMonth to its GMonthGMonthGMonth equivalent. A return value indicates whether the conversion succeeded or failed.

Syntax

Public Shared Function TryParse( _
    value As String, _
    <Out>result As ByRef GMonth _
) As Boolean
public static bool TryParse(
    string value,
    out GMonth result
)
public:
static bool TryParse(
    String^ value, 
    [Out] GMonth% result
)
 

Parameters

value

Type: System.StringSystem.StringSystem::String^

The lexical representation of an xs:gMonth to convert.

result

Type: out XmlPrime.GMonthByRef XmlPrime.GMonthXmlPrime::GMonth%

When this method returns, contains the GMonthGMonthGMonth value equivalent to the xs:gMonth represented 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

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptionvalue is null a null reference (Nothing in Visual Basic) nullptr.