TextWriterWrite Method (String, Object) |
Namespace: System.IOAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public virtual void Write(
string format,
Object arg0
)
Parameters
- format
- Type: SystemString
The formatting string. - arg0
- 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