Console Methods
Collapse the table of content
Expand the table of content

Console Methods

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

The Console type exposes the following members.

  NameDescription
Public method Static member ReadLine Infrastructure. Reads a line of characters from the console.
Public method Static member SetError Infrastructure. Security Critical. Sets the Error property.
Public method Static member SetIn Infrastructure. Security Critical. Sets the In property.
Public method Static member SetOut Infrastructure. Security Critical. Sets the Out property.
Public method Static member Write(Char) Infrastructure. Writes the specified Unicode character value to the standard output stream.
Public method Static member Write(Char[]) Infrastructure. Writes the specified array of Unicode characters to the standard output stream.
Public method Static member Write(Int32) Infrastructure. Writes the text representation of the specified 32-bit signed integer value to the standard output stream.
Public method Static member Write(Object) Infrastructure. Writes the text representation of the specified object to the standard output stream.
Public method Static member Write(String) Infrastructure. Writes the specified string value to the standard output stream.
Public method Static member Write(String, Object) Infrastructure. Writes the text representation of the specified object to the standard output stream using the specified format information.
Public method Static member Write(String, Object[]) Infrastructure. Writes the text representation of the specified array of objects to the standard output stream using the specified format information.
Public method Static member Write(Char[], Int32, Int32) Infrastructure. Writes the specified subarray of Unicode characters to the standard output stream.
Public method Static member Write(String, Object, Object) Infrastructure. Writes the text representation of the specified objects to the standard output stream using the specified format information.
Public method Static member Write(String, Object, Object, Object) Infrastructure. Writes the text representation of the specified objects to the standard output stream using the specified format information.
Public method Static member WriteLine() Infrastructure. Writes the current line terminator to the standard output stream.
Public method Static member WriteLine(Char) Infrastructure. Writes the specified Unicode character, followed by the current line terminator, value to the standard output stream.
Public method Static member WriteLine(Char[]) Infrastructure. Writes the specified array of Unicode characters, followed by the current line terminator, to the standard output stream.
Public method Static member WriteLine(Int32) Infrastructure. Writes the text representation of the specified 32-bit signed integer value, followed by the current line terminator, to the standard output stream.
Public method Static member WriteLine(Object) Infrastructure. Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream.
Public method Static member WriteLine(String) Infrastructure. Writes the specified string value, followed by the current line terminator, to the standard output stream.
Public method Static member WriteLine(String, Object) Infrastructure. Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream using the specified format information.
Public method Static member WriteLine(String, Object[]) Infrastructure. Writes the text representation of the specified array of objects, followed by the current line terminator, to the standard output stream using the specified format information.
Public method Static member WriteLine(String, Object, Object) Infrastructure. Writes the text representation of the specified objects, followed by the current line terminator, to the standard output stream using the specified format information.
Public method Static member WriteLine(String, Object, Object, Object) Infrastructure. Writes the text representation of the specified objects, followed by the current line terminator, to the standard output stream using the specified format information.
Top

Show:
© 2017 Microsoft