| Constructors: NewBinaryWriter |
Returns a new BinaryWriter used to write to a Stream object.
Public Function NewBinaryWriter( ByVal Stream As Stream, Optional ByVal Encoding As Encoding ) As BinaryWriter
If Encoding is not supplied, then an encoding of Cor.NewUTF8Encoding(False, True) is used.
| Exception | Condition |
|---|---|
| ArgumentException | The stream does not support writing, or the stream is already closed. |
| ArgumentNullException | Stream is Nothing. |