The AsBitStream method returns a BitStream representation (serialized form) of the NBElement's hierarchy being operated on, using the given encoding, ccsid and options.

C# | Visual Basic | Visual C++ | F# |
public byte[] AsBitStream( int encoding, int ccsid, NBBitStreamControl options )
Public Function AsBitStream ( _ encoding As Integer, _ ccsid As Integer, _ options As NBBitStreamControl _ ) As Byte()
public: array<unsigned char>^ AsBitStream( int encoding, int ccsid, NBBitStreamControl options )
member AsBitStream : encoding:int * ccsid:int * options:NBBitStreamControl -> byte[]

- encoding (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 (Int32)
- The coded character set identifier to use when parsing the bit stream. This parameter is mandatory.
Remarks
A special value of 0 may be supplied to indicate that the queue manager's ccsid should be used.
- options (NBBitStreamControl)
- The NBBitStreamControl options used to generate the bit stream.

Bitstream representation of the element and all its children.

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