WebSphere Message Broker™ V8.0.0.0 .NET Plugin Node API
ToTimeSpan Method (value)
NamespacesIBM.Broker.PluginNBElementConvertToTimeSpan(NBElement)
SUMMARY
Returns the value of the NBElement passed in after first converting it to a TimeSpan.
Declaration Syntax
C#Visual BasicVisual C++F#
public static TimeSpan ToTimeSpan(
	NBElement value
)
Public Shared Function ToTimeSpan ( _
	value As NBElement _
) As TimeSpan
public:
static TimeSpan ToTimeSpan(
	NBElement^ value
)
static member ToTimeSpan : 
        value:NBElement -> TimeSpan 
Parameters
value (NBElement)
The element whose value is to be converted.
Return Value
The current element's value converted to a TimeSpan data type.
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.
Exceptions
ExceptionCondition
FormatExceptionThrown if the value can not be converted to a TimeSpan.

Assembly: IBM.Broker.Plugin (Module: IBM.Broker.Plugin) Version: 8.0.0.0