Writes the text representation of an object to Out that is set to the system's standard output stream by default.
[Visual Basic] Overloads Public Shared Sub Write( _ ByVal value As Object _ ) [C#] public static void Write( object value ); [C++] public: static void Write( Object* value ); [JScript] public static function Write( value : Object );
Exception Type | Condition |
---|---|
IOException | An I/O error occured. |
If the given object is null, the string "null" is written to the output stream. Otherwise, the object's ToString method is called to produce the string representation, and the resulting string is then written to the output stream.
Console Class | Console Members | System Namespace | Console.Write Overload List