Skip to main content
TextWriterWrite Method
 

Writes the text representation of a 4-byte signed integer to the text string or stream.

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

Syntax
public virtual void Write(
	int value
)
public:
virtual void Write(
	int value
)
abstract Write : 
        value:int -> unit
override Write : 
        value:int -> unit
Public Overridable Sub Write (
	value As Integer
)

Parameters

value
Type:

The 4-byte signed integer to write.

Exceptions
Exception Condition
ObjectDisposedException

The TextWriter is closed.

IOException

An I/O error occurs.

Remarks

The text representation of the specified value is produced by calling the Int32ToString method. The property, if not null, specifies the culture-specific formatting.

For a list of common I/O tasks, see Common I/O Tasks.

Version Information
Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top