Mono Class Library: System.IO.StreamWriter Overview | MembersSystem.IO.StreamWriter Constructor |
Constructs and initializes a new instance of the System.IO.StreamWriter class for the specified stream, using the specified encoding and buffer size. [Edit]
|
- stream
- The System.IO.Stream to write to. [Edit]
- encoding
- A System.Text.Encoding that specifies the character encoding to use. [Edit]
- bufferSize
- A int that specifies the buffer size. [Edit]
Type Reason ArgumentNullException stream or encoding is null. [Edit] ArgumentOutOfRangeException bufferSize is negative. [Edit] ArgumentException stream does not support writing. [Edit]
This constructor initializes the StreamWriter.Encoding property using encoding , and the StreamWriter.BaseStream property using stream . For additional information, see TextWriter.Encoding. [Edit]
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0