WebSphere Message Broker™ V8.0.0.0 .NET Plugin Node API
ToByteArray Method (value, format)
NamespacesIBM.Broker.PluginNBElementConvertToByteArray(NBElement, String)
SUMMARY
Returns the value of the NBElement passed in after first converting it to a Byte Array if required with the specified format.
Declaration Syntax
C#Visual BasicVisual C++F#
public static byte[] ToByteArray(
	NBElement value,
	string format
)
Public Shared Function ToByteArray ( _
	value As NBElement, _
	format As String _
) As Byte()
public:
static array<unsigned char>^ ToByteArray(
	NBElement^ value, 
	String^ format
)
static member ToByteArray : 
        value:NBElement * 
        format:string -> byte[] 
Parameters
value (NBElement)
The element whose value is to be converted.
format (String)
The format specifier for the convertion.
Return Value
The current element's value converted to a ByteArray data type using the specified format.
Remarks
The format string uses the syntax documented in the Infocenter in the topic "Formatting and parsing numbers as strings (ak05615)".
Exceptions
ExceptionCondition
FormatExceptionThrown if the value can not be converted to a ByteArray using specified format.

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