The AsBitStream method returns a BitStream representation (serialized form) of the NBElement's hierarchy being operated on.

C# | Visual Basic | Visual C++ | F# |
public byte[] AsBitStream()
Public Function AsBitStream As Byte()
public: array<unsigned char>^ AsBitStream()
member AsBitStream : unit -> byte[]

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.