Click or drag to resize

StreamWriter(Stream, Encoding) Constructor

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

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

Parameters

stream  Stream
The stream to write to.
encoding  Encoding
The character encoding to use.
Exceptions
ExceptionCondition
ArgumentNullException stream or encoding is null.
ArgumentException stream is not writable.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also