Liquid XML Data Binder 2019
TryParseXsdDuration Method

LiquidTechnologies.XmlObjects Namespace > LxDuration Structure : TryParseXsdDuration Method
The string representation of an xs:duration
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.
Parses a string containing an xs:duration
Syntax
'Declaration
 
Public Shared Function TryParseXsdDuration( _
   ByVal xsdDuration As System.String, _
   ByRef result As LxDuration, _
   ByRef ex As System.Exception _
) As System.Boolean
public static System.bool TryParseXsdDuration( 
   System.string xsdDuration,
   out LxDuration result,
   out System.Exception ex
)

Parameters

xsdDuration
The string representation of an xs:duration
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:duration could be parsed successfully, in which case result holds the parsed value.
false if the xs:duration 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

Reference

LxDuration Structure
LxDuration Members