Click or drag to resize
TextWriterWrite Method (String, Object)
Writes out a formatted string, using the same semantics as Format(String, Object).

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public virtual void Write(
	string format,
	params Object[] arg
)

Parameters

format
Type: SystemString
The formatting string.
arg
Type: SystemObject
The object array to write into the formatted string.
Exceptions
ExceptionCondition
ArgumentNullExceptionformat or arg is null.
ObjectDisposedExceptionThe TextWriter is closed.
IOExceptionAn I/O error occurs.
FormatExceptionThe format specification in format is invalid.-or- The number indicating an argument to be formatted is less than zero, or larger than or equal to arg. Length.
See Also