WebSphere Message Broker™ V8.0.0.0 .NET Plugin Node API
ToByteArray Method (value, ccsid, encoding)
NamespacesIBM.Broker.PluginNBElementConvertToByteArray(NBElement, Int32, Int32)
SUMMARY
Returns the value of the NBElement passed in after first converting it to a Byte Array if required with the specified ccsid and encoding.
Declaration Syntax
C#Visual BasicVisual C++F#
public static byte[] ToByteArray(
	NBElement value,
	int ccsid,
	int encoding
)
Public Shared Function ToByteArray ( _
	value As NBElement, _
	ccsid As Integer, _
	encoding As Integer _
) As Byte()
public:
static array<unsigned char>^ ToByteArray(
	NBElement^ value, 
	int ccsid, 
	int encoding
)
static member ToByteArray : 
        value:NBElement * 
        ccsid:int * 
        encoding:int -> byte[] 
Parameters
value (NBElement)
The element whose value is to be converted.
ccsid (Int32)
The coded character set identifier of the element.
encoding (Int32)
The encoding of the element.
Return Value
The current element's value converted to a Byte Array data type with coded character set identifier and encoding.
Exceptions
ExceptionCondition
FormatExceptionThrown if the value can not be converted to a Byte Array with the given coded character set identifier and encoding.

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