TimeWithZone.TryParse MethodTimeWithZone.TryParse MethodTimeWithZone::TryParse Method
Converts a lexical representation of an
xs:time
to its TimeWithZoneTimeWithZoneTimeWithZone equivalent.
A return value indicates whether the conversion succeeded or failed.
Syntax
Public Shared Function TryParse( _ text As String, _ <Out>result As ByRef TimeWithZone _ ) As Boolean
public static bool TryParse( string text, out TimeWithZone result )
public: static bool TryParse( String^ text, [Out] TimeWithZone% result )
Parameters
- text
Type: System.StringSystem.StringSystem::String^
The string representation of an
xs:time
to convert.- result
Type: out XmlPrime.TimeWithZoneByRef XmlPrime.TimeWithZoneXmlPrime::TimeWithZone%
When this method returns, contains the TimeWithZoneTimeWithZoneTimeWithZone value equivalent to the
xs:time
represented by text if the conversion succeeded, or midnight (00:00:00
) if the conversion failed.
Return Value
Type: System.BooleanSystem.BooleanSystem::Boolean
true
True
true
if the conversion succeeded; otherwise false
False
false
.