NBElementConvert ToTimeSpan Method (NBElement)IBM Integration Bus
Returns the value of the NBElement passed in after first converting it to a TimeSpan.

Namespace: IBM.Broker.Plugin
Assembly: IBM.Broker.Plugin (in IBM.Broker.Plugin.dll) Version: 9.0.0.0
Syntax

public static TimeSpan ToTimeSpan(
	NBElement value
)

Return Value

Type: OnlineTimeSpan
The current element's value converted to a TimeSpan data type.
Exceptions

ExceptionCondition
OnlineSystem FormatExceptionThrown if the value can not be converted to a TimeSpan.
Remarks

This method assumes the value element will contain a broker Time, GmtTime or IntervalDaySecond data type. If this is not the case, use one of the overloads with the convertVia parameter.
See Also