TextWriterWrite Method (String, Object) |
Namespace: System.IOAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax 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 Exception | Condition |
---|
ArgumentNullException | format or arg 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 arg. Length. |
See Also