DurationTryParse Method
Construct a new Duration object from a duration specified in a string. Parameters specify the
duration and the variable where the new Duration object is returned.
Namespace: EWSoftware.PDIAssembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2023.1.2.0
public static bool TryParse(
string duration,
out Duration result
)
Public Shared Function TryParse (
duration As String,
<OutAttribute> ByRef result As Duration
) As Boolean
public:
static bool TryParse(
String^ duration,
[OutAttribute] Duration% result
)
static member TryParse :
duration : string *
result : Duration byref -> bool
- duration String
- The string that specifies the duration.
- result Duration
- When this method returns, this contains an object that represents the duration
specified by s, or Zero if the conversion failed. This parameter is passed in
uninitialized.
BooleanTrue if successfully parsed or false if the value could not be parsed