WebSphere Message Broker™ V8.0.0.0 .NET Plugin Node API
ToDateTimeOffset Method (value, convertVia)
NamespacesIBM.Broker.PluginNBElementConvertToDateTimeOffset(NBElement, NBElementDateTimeType)
SUMMARY
Returns the value of the NBElement passed in after first converting it to a DateTimeOffset if required using specified conversion.
Declaration Syntax
C#Visual BasicVisual C++F#
public static DateTimeOffset ToDateTimeOffset(
	NBElement value,
	NBElementDateTimeType convertVia
)
Public Shared Function ToDateTimeOffset ( _
	value As NBElement, _
	convertVia As NBElementDateTimeType _
) As DateTimeOffset
public:
static DateTimeOffset ToDateTimeOffset(
	NBElement^ value, 
	NBElementDateTimeType convertVia
)
static member ToDateTimeOffset : 
        value:NBElement * 
        convertVia:NBElementDateTimeType -> DateTimeOffset 
Parameters
value (NBElement)
The element whose value is to be converted.
convertVia (NBElementDateTimeType)
The type conversion qualifier for element.
Return Value
The current element's value converted to a DateTimeOffset data type and the specified conversion of the element.
Remarks

As there are multiple choices when converting from a broker type to a DateTimeOffset, this method allows you greater control over how the convertion is performed. The value is first converted to the convertVia type, and then subsequently converted to a DateTimeOffset.

Exceptions
ExceptionCondition
FormatExceptionThrown if the value can not be converted to a DateTimeOffset using specified conversion.

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