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:timeto convert.- result
Type: out XmlPrime.TimeWithZoneByRef XmlPrime.TimeWithZoneXmlPrime::TimeWithZone%
When this method returns, contains the TimeWithZoneTimeWithZoneTimeWithZone value equivalent to the
xs:timerepresented by text if the conversion succeeded, or midnight (00:00:00) if the conversion failed.
Return Value
Type: System.BooleanSystem.BooleanSystem::Boolean
trueTruetrue if the conversion succeeded; otherwise falseFalsefalse.
