NBElement AsBitStream Method (Int32, Int32, String, String, String)IBM Integration Bus
The AsBitStream method returns a BitStream representation (serialized form) of the NBElement's hierarchy being operated on, using the given encoding, ccsid, message set, message type and message format.

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

public byte[] AsBitStream(
	int encoding,
	int ccsid,
	string messageSet,
	string messageType,
	string messageFormat
)

Parameters

encoding
Type: OnlineSystem Int32
The encoding to use when parsing the bit stream.
Remarks

A special value of 0 may be supplied to indicate that the queue manager's encoding should be used.
ccsid
Type: OnlineSystem Int32
The coded character set identifier to use when parsing the bit stream.
Remarks

This parameter is mandatory. A special value of 0 may be supplied to indicate that the queue manager's ccsid should be used.
messageSet
Type: OnlineSystem String
The message set definition used to create the element tree from the bit stream.
Remarks

A value of null will cause this parameter to be ignored.
messageType
Type: OnlineSystem String
The message type definition used to create the element tree from the bit stream.
Remarks

A value of null will cause this parameter to be ignored.
messageFormat
Type: OnlineSystem String
The message format definition used to create the element tree from the bit stream.
Remarks

A value of null will cause this parameter to be ignored.

Return Value

Type:  OnlineByte 
Bitstream representation of the element and all its children.
Remarks

This method causes the parser associated with the element to serialize the element and all its children.
See Also