Cuemon .NET Framework
FromString Method (TimeSpanConverter)

The string to be converted.
One of the enumeration values that specifies the outcome of the conversion.
Converts the specified value to its equivalent System.TimeSpan representation.
Syntax
'Declaration
 
Public Shared Function FromString( _
   ByVal value As String, _
   ByVal timeUnit As TimeUnit _
) As TimeSpan
public static TimeSpan FromString( 
   string value,
   TimeUnit timeUnit
)

Parameters

value
The string to be converted.
timeUnit
One of the enumeration values that specifies the outcome of the conversion.

Return Value

A System.TimeSpan that corresponds to value from timeUnit.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionvalue is null.
System.OverflowExceptionThe value paired with timeUnit is outside its valid range.
System.ArgumentOutOfRangeExceptiontimeUnit was outside its valid range.
Requirements

Target Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

TimeSpanConverter Class
TimeSpanConverter Members

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback