TimeWithZone.Parse MethodTimeWithZone.Parse MethodTimeWithZone::Parse Method

Converts a lexical representation of an xs:time to its TimeWithZoneTimeWithZoneTimeWithZone equivalent.

Syntax

Public Shared Function Parse( _
    value As String _
) As TimeWithZone
public static TimeWithZone Parse(
    string value
)
public:
static TimeWithZone Parse(
    String^ value
)
 

Parameters

value

Type: System.StringSystem.StringSystem::String^

The lexical representation of an xs:time to convert.

Return Value

Type: XmlPrime.TimeWithZoneXmlPrime.TimeWithZoneXmlPrime::TimeWithZone

The TimeWithZoneTimeWithZoneTimeWithZone equivalent to the xs:time represented by value.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptionvalue is null a null reference (Nothing in Visual Basic) nullptr.
FormatExceptionFormatExceptionFormatExceptionvalue is not a valid lexical value of an xs:time.