TextWriter.Write Method (String)

Writes a string to the text stream.

Namespace:  System.IO
Assembly:  mscorlib (in mscorlib.dll)

public virtual void Write(
	string value
)

Parameters

value
Type: System.String
The string to write.

ExceptionCondition
ObjectDisposedException

The TextWriter is closed.

IOException

An I/O error occurs.

This version of Write is equivalent to Write.

This method does not search the specified String for individual newline characters (hexadecimal 0x000a) and replace them with NewLine.

If value is null, nothing is written to the text stream.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft