C# Class System.IO.StreamWriter

Inheritance: TextWriter
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Méthodes publiques

Свойство Type Description
Null StreamWriter

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode 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 méthode

public Close ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Flush() public méthode

public Flush ( ) : void
Résultat void

FlushAsync() public méthode

public FlushAsync ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

StreamWriter() public méthode

public StreamWriter ( Stream stream ) : System.Text
stream Stream
Résultat System.Text

StreamWriter() public méthode

public StreamWriter ( Stream stream, Encoding encoding ) : System.Text
stream Stream
encoding System.Text.Encoding
Résultat System.Text

StreamWriter() public méthode

public StreamWriter ( Stream stream, Encoding encoding, int bufferSize ) : System.Text
stream Stream
encoding System.Text.Encoding
bufferSize int
Résultat System.Text

StreamWriter() public méthode

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

StreamWriter() public méthode

public StreamWriter ( string path ) : System.Text
path string
Résultat System.Text

StreamWriter() public méthode

public StreamWriter ( string path, bool append ) : System.Text
path string
append bool
Résultat System.Text

StreamWriter() public méthode

public StreamWriter ( string path, bool append, Encoding encoding ) : System.Text
path string
append bool
encoding System.Text.Encoding
Résultat System.Text

StreamWriter() public méthode

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

Write() public méthode

public Write ( char value ) : void
value char
Résultat void

Write() public méthode

public Write ( char buffer, int index, int count ) : void
buffer char
index int
count int
Résultat void

Write() public méthode

public Write ( string value ) : void
value string
Résultat void

WriteAsync() public méthode

public WriteAsync ( char value ) : System.Threading.Tasks.Task
value char
Résultat System.Threading.Tasks.Task

WriteAsync() public méthode

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

WriteAsync() public méthode

public WriteAsync ( string value ) : System.Threading.Tasks.Task
value string
Résultat System.Threading.Tasks.Task

WriteLine() public méthode

public WriteLine ( string value ) : void
value string
Résultat void

WriteLineAsync() public méthode

public WriteLineAsync ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

WriteLineAsync() public méthode

public WriteLineAsync ( char value ) : System.Threading.Tasks.Task
value char
Résultat System.Threading.Tasks.Task

WriteLineAsync() public méthode

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

WriteLineAsync() public méthode

public WriteLineAsync ( string value ) : System.Threading.Tasks.Task
value string
Résultat System.Threading.Tasks.Task

Property Details

Null public_oe static_oe property

public static StreamWriter,System.IO Null
Résultat StreamWriter