NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TimeSpan.Parse

Constructs a TimeSpan from a string.

[Visual Basic]
Public Shared Function Parse( _
   ByVal s As String _
) As TimeSpan
[C#]
public static TimeSpan Parse(
   string s
);
[C++]
public: static TimeSpan Parse(
   String* s
);
[JScript]
public static function Parse(
   s : String
) : TimeSpan;

Parameters

s
The string to parse.

Return Value

A TimeSpan that corresponds to s.

Exceptions

Exception Type Condition
ArgumentException If the string is a null reference (in Visual Basic Nothing).
FormatException If the staring cannot be parsed.

Remarks

Leading and trailing white space characters are allowed.

See Also

TimeSpan Structure | TimeSpan Members | System Namespace | String