Writes a formatted string to the text stream.
- format
- A string containing the format string.
- arg
- The array of objects referenced from the format string.
Type Reason ArgumentNullException format is null.
-or-
arg is null.
System.IO.IOException An I/O error occurred. FormatException The format specification in format is invalid.
-or-
The number indicating an argument to be formatted is less than zero, or greater than or equal to arg.Length .
This version of TextWriter.Write(char) is equivalent to TextWriter.Write(char)(string.Format(string, object) (format, arg)).
Note:If a specified object is not referenced in the format string, it is ignored.
This method does not search the specified string for individual newline characters (hexadecimal 0x000a) and replace them with TextWriter.NewLine.
Operation
As described above.
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0