C# Class System.IO.StreamWriter

Inheritance: TextWriter
Mostra file Open project: dotnet/corefx Class Usage Examples

Public Properties

Property Type Description
Null StreamWriter

Private Properties

Property Type Description
CheckAsyncTaskInProgress void
Flush void
FlushAsyncInternal System.Threading.Tasks.Task
FlushAsyncInternal System.Threading.Tasks.Task
Init void
StreamWriter System.Text
WriteAsyncInternal System.Threading.Tasks.Task
WriteAsyncInternal System.Threading.Tasks.Task
WriteAsyncInternal System.Threading.Tasks.Task

Public Methods

Method Description
Close ( ) : void
Flush ( ) : void
FlushAsync ( ) : System.Threading.Tasks.Task
StreamWriter ( Stream stream ) : System.Text
StreamWriter ( Stream stream, Encoding encoding ) : System.Text
StreamWriter ( Stream stream, Encoding encoding, int bufferSize ) : System.Text
StreamWriter ( Stream stream, Encoding encoding, int bufferSize, bool leaveOpen ) : System.Text
StreamWriter ( string path ) : System.Text
StreamWriter ( string path, bool append ) : System.Text
StreamWriter ( string path, bool append, Encoding encoding ) : System.Text
StreamWriter ( string path, bool append, Encoding encoding, int bufferSize ) : System.Text
Write ( char value ) : void
Write ( char buffer, int index, int count ) : void
Write ( string value ) : void
WriteAsync ( char value ) : System.Threading.Tasks.Task
WriteAsync ( char buffer, int index, int count ) : System.Threading.Tasks.Task
WriteAsync ( string value ) : System.Threading.Tasks.Task
WriteLine ( string value ) : void
WriteLineAsync ( ) : System.Threading.Tasks.Task
WriteLineAsync ( char value ) : System.Threading.Tasks.Task
WriteLineAsync ( char buffer, int index, int count ) : System.Threading.Tasks.Task
WriteLineAsync ( string value ) : System.Threading.Tasks.Task

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
CheckAsyncTaskInProgress ( ) : void
Flush ( bool flushStream, bool flushEncoder ) : void
FlushAsyncInternal ( StreamWriter _this, bool flushStream, bool flushEncoder, char charBuffer, int charPos, bool haveWrittenPreamble, Encoding encoding, Encoder encoder, Byte byteBuffer, Stream stream ) : System.Threading.Tasks.Task
FlushAsyncInternal ( bool flushStream, bool flushEncoder, char sCharBuffer, int sCharPos ) : System.Threading.Tasks.Task
Init ( Stream streamArg, Encoding encodingArg, int bufferSize, bool shouldLeaveOpen ) : void
StreamWriter ( ) : System.Text
WriteAsyncInternal ( StreamWriter _this, char value, char charBuffer, int charPos, int charLen, char coreNewLine, bool autoFlush, bool appendNewLine ) : System.Threading.Tasks.Task
WriteAsyncInternal ( StreamWriter _this, char buffer, int index, int count, char charBuffer, int charPos, int charLen, char coreNewLine, bool autoFlush, bool appendNewLine ) : System.Threading.Tasks.Task
WriteAsyncInternal ( StreamWriter _this, string value, char charBuffer, int charPos, int charLen, char coreNewLine, bool autoFlush, bool appendNewLine ) : System.Threading.Tasks.Task

Method Details

Close() public method

public Close ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Flush() public method

public Flush ( ) : void
return void

FlushAsync() public method

public FlushAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

StreamWriter() public method

public StreamWriter ( Stream stream ) : System.Text
stream Stream
return System.Text

StreamWriter() public method

public StreamWriter ( Stream stream, Encoding encoding ) : System.Text
stream Stream
encoding System.Text.Encoding
return System.Text

StreamWriter() public method

public StreamWriter ( Stream stream, Encoding encoding, int bufferSize ) : System.Text
stream Stream
encoding System.Text.Encoding
bufferSize int
return System.Text

StreamWriter() public method

public StreamWriter ( Stream stream, Encoding encoding, int bufferSize, bool leaveOpen ) : System.Text
stream Stream
encoding System.Text.Encoding
bufferSize int
leaveOpen bool
return System.Text

StreamWriter() public method

public StreamWriter ( string path ) : System.Text
path string
return System.Text

StreamWriter() public method

public StreamWriter ( string path, bool append ) : System.Text
path string
append bool
return System.Text

StreamWriter() public method

public StreamWriter ( string path, bool append, Encoding encoding ) : System.Text
path string
append bool
encoding System.Text.Encoding
return System.Text

StreamWriter() public method

public StreamWriter ( string path, bool append, Encoding encoding, int bufferSize ) : System.Text
path string
append bool
encoding System.Text.Encoding
bufferSize int
return System.Text

Write() public method

public Write ( char value ) : void
value char
return void

Write() public method

public Write ( char buffer, int index, int count ) : void
buffer char
index int
count int
return void

Write() public method

public Write ( string value ) : void
value string
return void

WriteAsync() public method

public WriteAsync ( char value ) : System.Threading.Tasks.Task
value char
return System.Threading.Tasks.Task

WriteAsync() public method

public WriteAsync ( char buffer, int index, int count ) : System.Threading.Tasks.Task
buffer char
index int
count int
return System.Threading.Tasks.Task

WriteAsync() public method

public WriteAsync ( string value ) : System.Threading.Tasks.Task
value string
return System.Threading.Tasks.Task

WriteLine() public method

public WriteLine ( string value ) : void
value string
return void

WriteLineAsync() public method

public WriteLineAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

WriteLineAsync() public method

public WriteLineAsync ( char value ) : System.Threading.Tasks.Task
value char
return System.Threading.Tasks.Task

WriteLineAsync() public method

public WriteLineAsync ( char buffer, int index, int count ) : System.Threading.Tasks.Task
buffer char
index int
count int
return System.Threading.Tasks.Task

WriteLineAsync() public method

public WriteLineAsync ( string value ) : System.Threading.Tasks.Task
value string
return System.Threading.Tasks.Task

Property Details

Null public_oe static_oe property

public static StreamWriter,System.IO Null
return StreamWriter