forwardTryGetTimeSpan Method (Int32, Int32, TimeSpan)   Table of ContentTryGetTimestamp Method forward
Group.TryGetTimeSpan Method (Int32, Int32, TimeSpanFormat, TimeSpan)
Converts the field value with the given format to its TimeSpan equivalent. A returned value indicates whether the operation succeeded.

Namespace:  FIXForge.NET.FIX
Assembly:  FIXForge.NET.FIX.Engine-net-4.8_x64 (in FIXForge.NET.FIX.Engine-net-4.8_x64.dll) Version: 4.12.0.0
Syntax
C#
public bool TryGetTimeSpan(
	int tag,
	int repeatingGroupEntryIndex,
	TimeSpanFormat format,
	out TimeSpan result
)

Parameters

tag
Type: System.Int32
Tag number.
repeatingGroupEntryIndex
Type: System.Int32
Index of the repeating group entry (starts at 0).
format
Type: FIXForge.NET.FIX.TimeSpanFormat
TimeSpan format.
result
Type: System.TimeSpan
When this method returns, contains the TimeSpan equivalent to the field value, if the conversion succeeded, or an undefined value if the conversion failed. The conversion fails if the field value is absent or its length is not 1. This parameter is passed uninitialized.

Return Value

Type: Boolean
true if the field value was converted successfully; otherwise - false.
See Also