LiquidTechnologies.XmlObjects Namespace / LxDuration Structure / TryParseXsdYearMonthDuration Method
The string representation of an xs:yearMonthDuration
If successful (returns true) then this contains an LxDuration object holding the value read from xsdDuration.
If unsuccessful (returns false) then this value is undefined.
If successful (returns true) then this is undefined.
If unsuccessful (returns false) then this value contains an exception describing the error.

In This Topic
    TryParseXsdYearMonthDuration Method
    In This Topic
    Parses a string containing an xs:yearMonthDuration (XSD 1.1)
    Syntax
    'Declaration
     
    
    Public Shared Function TryParseXsdYearMonthDuration( _
       ByVal xsdDuration As System.String, _
       ByRef result As LxDuration, _
       ByRef ex As System.Exception _
    ) As System.Boolean
    public static System.bool TryParseXsdYearMonthDuration( 
       System.string xsdDuration,
       out LxDuration result,
       out System.Exception ex
    )

    Parameters

    xsdDuration
    The string representation of an xs:yearMonthDuration
    result
    If successful (returns true) then this contains an LxDuration object holding the value read from xsdDuration.
    If unsuccessful (returns false) then this value is undefined.
    ex
    If successful (returns true) then this is undefined.
    If unsuccessful (returns false) then this value contains an exception describing the error.

    Return Value

    true if the xs:yearMonthDuration could be parsed successfully, in which case result holds the parsed value.
    false if the xs:yearMonthDuration could be NOT be parsed successfully, in which case ex holds an exception describing the error.
    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows Server 2016, Windows Server 2012, Windows Server 2008. Please ensure you have the latest Service Pack for your operating system installed.

    See Also