TextWriterWrite Method (String, Object, Object) |
Namespace: System.IOAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax 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 Exception | Condition |
---|
ArgumentNullException | format is null. |
ObjectDisposedException | The TextWriter is closed. |
IOException | An I/O error occurs. |
FormatException | The 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