Mono Class Library: System.Console Overview | Members

System.Console.Write Method

Writes a formatted string to the Console.OutSystem.IO.TextWriter . [Edit]

public static void Write (string format, object arg0)

Parameters

format
A string that specifies the format string. [Edit]
arg0
An object referenced in the format string. [Edit]

Exceptions

TypeReason
ArgumentNullExceptionformat is null. [Edit]
System.IO.IOExceptionAn I/O error occurred. [Edit]
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 the number of provided objects to be formatted (1).

[Edit]

Remarks

Note:

If the specified object is not referenced in format, it is ignored.

For more information on format strings, see the string class overview.

[Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0