CsvWriter - класс

Объект осуществляющий запись в csv

Definition

Пространство имён: Tessa.Platform.IO
Сборка: Tessa (в Tessa.dll) Версия: 3.6.0.22
C#
public sealed class CsvWriter : StreamWriter, 
	IEscapeableStreamWriter, ICsvItemSeparator
Inheritance
Object    MarshalByRefObject    TextWriter    StreamWriter    CsvWriter
Implements
ICsvItemSeparator, IEscapeableStreamWriter

Конструкторы

CsvWriter(Stream) Initializes a new instance of the CsvWriter class. Инициализирует новый экземпляр StreamWriter для указанного потока, используя кодировку UTF-8 и размер буфера по умолчанию.
CsvWriter(String) Initializes a new instance of the CsvWriter class. Инициализирует новый экземпляр класса StreamWriter для указанного файла по заданному пути, используя кодировку и размер буфера по умолчанию.
CsvWriter(Stream, Encoding) Initializes a new instance of the CsvWriter class. Инициализирует новый экземпляр класса StreamWriter для указанного потока, используя заданную кодировку и размер буфера по умолчанию.
CsvWriter(String, Boolean) Initializes a new instance of the CsvWriter class. Инициализирует новый экземпляр класса StreamWriter для указанного файла по заданному пути, используя кодировку и размер буфера по умолчанию.Если файл существует, он может быть либо перезаписан, либо в него могут быть добавлены данные.Если файл не существует, конструктор создает новый файл.
CsvWriter(Stream, Encoding, Int32) Initializes a new instance of the CsvWriter class. Инициализирует новый экземпляр класса StreamWriter для указанного потока, используя заданную кодировку и размер буфера.
CsvWriter(String, Boolean, Encoding) Initializes a new instance of the CsvWriter class. Инициализирует новый экземпляр класса StreamWriter для указанного файла по заданному пути, используя заданную кодировку и размер буфера по умолчанию.Если файл существует, он может быть либо перезаписан, либо в него могут быть добавлены данные.Если файл не существует, конструктор создает новый файл.
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.
CsvWriter(String, Boolean, Encoding, Int32) Initializes a new instance of the CsvWriter class. Инициализирует новый экземпляр класса StreamWriter для указанного файла по заданному пути, используя заданную кодировку и размер буфера.Если файл существует, он может быть либо перезаписан, либо в него могут быть добавлены данные.Если файл не существует, конструктор создает новый файл.

Свойства

AutoFlushGets or sets a value indicating whether the StreamWriter will flush its buffer to the underlying stream after every call to Write(Char).
(Унаследован от StreamWriter)
BaseStreamGets the underlying stream that interfaces with a backing store.
(Унаследован от StreamWriter)
EncodingGets the Encoding in which the output is written.
(Унаследован от StreamWriter)
ForceEscaping Признак того, что требуется включить принудительный режим экранирования выводимых строк, даже если он не требуется по правилами используемых настроек форматирования.
FormatProvider Получает объект, управляющий форматированием.
(Переопределяет TextWriterFormatProvider)
NewLineGets or sets the line terminator string used by the current TextWriter.
(Унаследован от TextWriter)
Separator Gets or sets Разделитель полей

Методы

CloseCloses the current StreamWriter object and the underlying stream.
(Унаследован от StreamWriter)
DisposeReleases all resources used by the TextWriter object.
(Унаследован от TextWriter)
Dispose(Boolean)Causes any buffered data to be written to the underlying stream, releases the unmanaged resources used by the StreamWriter, and optionally the managed resources.
(Унаследован от StreamWriter)
DisposeAsyncAsynchronously writes any buffered data to the underlying stream and releases the unmanaged resources used by the StreamWriter.
(Унаследован от StreamWriter)
EqualsDetermines whether the specified object is equal to the current object.
(Унаследован от Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Унаследован от Object)
FlushClears all buffers for the current writer and causes any buffered data to be written to the underlying stream.
(Унаследован от StreamWriter)
FlushAsyncClears all buffers for this stream asynchronously and causes any buffered data to be written to the underlying device.
(Унаследован от StreamWriter)
GetHashCodeServes as the default hash function.
(Унаследован от Object)
GetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance.
(Унаследован от MarshalByRefObject)
GetTypeGets the Type of the current instance.
(Унаследован от Object)
InitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance.
(Унаследован от MarshalByRefObject)
MemberwiseCloneCreates a shallow copy of the current Object.
(Унаследован от Object)
MemberwiseClone(Boolean)Creates a shallow copy of the current MarshalByRefObject object.
(Унаследован от MarshalByRefObject)
ToStringReturns a string that represents the current object.
(Унаследован от Object)
Write(Boolean)Writes the text representation of a Boolean value to the text stream.
(Унаследован от TextWriter)
Write(Char)Writes a character to the stream.
(Унаследован от StreamWriter)
Write(Char)Writes a character array to the stream.
(Унаследован от StreamWriter)
Write(Decimal)Writes the text representation of a decimal value to the text stream.
(Унаследован от TextWriter)
Write(Double)Writes the text representation of an 8-byte floating-point value to the text stream.
(Унаследован от TextWriter)
Write(Int32)Writes the text representation of a 4-byte signed integer to the text stream.
(Унаследован от TextWriter)
Write(Int64)Writes the text representation of an 8-byte signed integer to the text stream.
(Унаследован от TextWriter)
Write(Object)Writes the text representation of an object to the text stream by calling the ToString method on that object.
(Унаследован от TextWriter)
Write(ReadOnlySpanChar)Writes a character span to the stream.
(Унаследован от StreamWriter)
Write(Single)Writes the text representation of a 4-byte floating-point value to the text stream.
(Унаследован от TextWriter)
Write(String) Записывает в поток строку.
(Переопределяет StreamWriterWrite(String))
Write(UInt32)Writes the text representation of a 4-byte unsigned integer to the text stream.
(Унаследован от TextWriter)
Write(UInt64)Writes the text representation of an 8-byte unsigned integer to the text stream.
(Унаследован от TextWriter)
Write(String, Object)Writes a formatted string to the text stream, using the same semantics as the Format(String, Object) method.
(Унаследован от TextWriter)
Write(String, Object)Writes a formatted string to the text stream, using the same semantics as the Format(String, Object) method.
(Унаследован от TextWriter)
Write(Char, Int32, Int32)Writes a subarray of characters to the stream.
(Унаследован от StreamWriter)
Write(String, Object, Object)Writes a formatted string to the text stream using the same semantics as the Format(String, Object, Object) method.
(Унаследован от TextWriter)
Write(String, Object, Object, Object)Writes a formatted string to the text stream, using the same semantics as the Format(String, Object, Object, Object) method.
(Унаследован от TextWriter)
WriteAsync(Char)Asynchronously writes a character to the stream.
(Унаследован от StreamWriter)
WriteAsync(Char)Writes a character array to the text stream asynchronously.
(Унаследован от TextWriter)
WriteAsync(String)Asynchronously writes a string to the stream.
(Переопределяет StreamWriterWriteAsync(String))
WriteAsync(ReadOnlyMemoryChar, CancellationToken)Asynchronously writes a character memory region to the stream.
(Унаследован от StreamWriter)
WriteAsync(Char, Int32, Int32)Asynchronously writes a subarray of characters to the stream.
(Унаследован от StreamWriter)
WriteLineWrites a line terminator to the text stream.
(Унаследован от TextWriter)
WriteLine(Boolean)Writes the text representation of a Boolean value to the text stream, followed by a line terminator.
(Унаследован от TextWriter)
WriteLine(Char)Writes a character to the text stream, followed by a line terminator.
(Унаследован от TextWriter)
WriteLine(Char)Writes an array of characters to the text stream, followed by a line terminator.
(Унаследован от TextWriter)
WriteLine(Decimal)Writes the text representation of a decimal value to the text stream, followed by a line terminator.
(Унаследован от TextWriter)
WriteLine(Double)Writes the text representation of a 8-byte floating-point value to the text stream, followed by a line terminator.
(Унаследован от TextWriter)
WriteLine(Int32)Writes the text representation of a 4-byte signed integer to the text stream, followed by a line terminator.
(Унаследован от TextWriter)
WriteLine(Int64)Writes the text representation of an 8-byte signed integer to the text stream, followed by a line terminator.
(Унаследован от TextWriter)
WriteLine(Object)Writes the text representation of an object to the text stream, by calling the ToString method on that object, followed by a line terminator.
(Унаследован от TextWriter)
WriteLine(ReadOnlySpanChar)Writes the text representation of a character span to the stream, followed by a line terminator.
(Унаследован от StreamWriter)
WriteLine(Single)Writes the text representation of a 4-byte floating-point value to the text stream, followed by a line terminator.
(Унаследован от TextWriter)
WriteLine(String)Writes a string to the stream, followed by a line terminator.
(Унаследован от StreamWriter)
WriteLine(UInt32)Writes the text representation of a 4-byte unsigned integer to the text stream, followed by a line terminator.
(Унаследован от TextWriter)
WriteLine(UInt64)Writes the text representation of an 8-byte unsigned integer to the text stream, followed by a line terminator.
(Унаследован от TextWriter)
WriteLine(String, Object)Writes a formatted string and a new line to the text stream, using the same semantics as the Format(String, Object) method.
(Унаследован от TextWriter)
WriteLine(String, Object)Writes out a formatted string and a new line to the text stream, using the same semantics as Format(String, Object).
(Унаследован от TextWriter)
WriteLine(Char, Int32, Int32)Writes a subarray of characters to the text stream, followed by a line terminator.
(Унаследован от TextWriter)
WriteLine(String, Object, Object)Writes a formatted string and a new line to the text stream, using the same semantics as the Format(String, Object, Object) method.
(Унаследован от TextWriter)
WriteLine(String, Object, Object, Object)Writes out a formatted string and a new line to the text stream, using the same semantics as Format(String, Object).
(Унаследован от TextWriter)
WriteLineAsyncAsynchronously writes a line terminator to the stream.
(Унаследован от StreamWriter)
WriteLineAsync(Char)Asynchronously writes a character to the stream, followed by a line terminator.
(Унаследован от StreamWriter)
WriteLineAsync(Char)Asynchronously writes an array of characters to the text stream, followed by a line terminator.
(Унаследован от TextWriter)
WriteLineAsync(String)Asynchronously writes a string to the stream, followed by a line terminator.
(Унаследован от StreamWriter)
WriteLineAsync(ReadOnlyMemoryChar, CancellationToken)Asynchronously writes the text representation of a character memory region to the stream, followed by a line terminator.
(Унаследован от StreamWriter)
WriteLineAsync(Char, Int32, Int32)Asynchronously writes a subarray of characters to the stream, followed by a line terminator.
(Унаследован от StreamWriter)
WriteSeparatorAsync Осуществляет запись разделителя

Поля

CoreNewLineStores the newline characters used for this TextWriter.
(Унаследован от TextWriter)

Методы расширения

Get
(Определяется ComHelper)
InternalMarkerCanvas Возвращает маркер аннотации
(Определяется AnnotationInternalsAccessor)
Invoke
(Определяется ComHelper)
Set
(Определяется ComHelper)
WriteIndent
(Определяется CommandLineIOExtensions)
WriteIndented Writes a string to the text string or stream with indentation of every line of the string.
(Определяется CommandLineIOExtensions)
WriteIndented Writes a string to the text string or stream with indentation of every line of the string.
(Определяется CommandLineIOExtensions)
WriteLogo Writes a logo to the specified output stream.
(Определяется CommandLineIOExtensions)

См. также