Click or drag to resize
TextWriterWrite Method (String, Object, 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,
	Object arg0,
	Object arg1
)

Parameters

format
Type: SystemString
The formatting string.
arg0
Type: SystemObject
An object to write into the formatted string.
arg1
Type: SystemObject
An object to write into the formatted string.
Exceptions
ExceptionCondition
ArgumentNullExceptionformat 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 the number of provided objects to be formatted.
See Also