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.

Definition

Namespace: EWSoftware.PDI
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2023.1.2.0
public static bool TryParse(
	string duration,
	out Duration result
)

Parameters

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.

Return Value

Boolean
True if successfully parsed or false if the value could not be parsed

See Also