CsvWriter(Stream, Encoding, Int32, Boolean) - конструктор

Initializes a new instance of the StreamWriter class for the specified stream by using the specified encoding and buffer size, and optionally leaves the stream open.

Definition

Пространство имён: Tessa.Platform.IO
Сборка: Tessa (в Tessa.dll) Версия: 3.6.0.22
C#
public CsvWriter(
	[NotNullAttribute] Stream stream,
	[NotNullAttribute] Encoding encoding,
	int bufferSize,
	bool leaveOpen
)

Параметры

stream  Stream
The stream to write to.
encoding  Encoding
The character encoding to use.
bufferSize  Int32
The buffer size, in bytes.
leaveOpen  Boolean
to leave the stream open after the StreamWriter object is disposed; otherwise, .

Исключения

ArgumentNullExceptionstream or encoding is .
ArgumentOutOfRangeExceptionbufferSize is negative.
ArgumentExceptionstream is not writable.

См. также