 | DurationTryParse Method |
Tries parsing the given
String to a
Duration instance.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static bool TryParse(
string durationString,
out Duration duration
)
Public Shared Function TryParse (
durationString As String,
<OutAttribute> ByRef duration As Duration
) As Boolean
Parameters
- durationString
- Type: SystemString
A string representing a duration. - duration
- Type: RanorexDuration
When this method returns, contains a Duration instance
if parsing succeeded, null otherwise.
Return Value
Type:
BooleanTrue if parsing succeeded, otherwise
false.
See Also