Click or drag to resize

StreamWriter(Stream, Encoding, Int32) Constructor

Initializes a new instance of the CrestronIO.StreamWriter class for the specified stream, using the specified encoding and buffer size.

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public StreamWriter(
	Stream stream,
	Encoding encoding,
	int bufferSize
)

Parameters

stream  Stream
The stream to write to.
encoding  Encoding
The character encoding to use.
bufferSize  Int32
Sets the buffer size.
Exceptions
ExceptionCondition
ArgumentNullException stream or encoding is null.
ArgumentOutOfRangeException bufferSize is negative.
ArgumentException stream is not writable.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also