共用方式為


Console.WriteLine Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

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

Writes the specified data, followed by the current line terminator, to the standard output stream.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 WriteLine() Infrastructure. Writes the current line terminator to the standard output stream.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 WriteLine(Char) Infrastructure. Writes the specified Unicode character, followed by the current line terminator, value to the standard output stream.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 WriteLine(array<Char[]) Infrastructure. Writes the specified array of Unicode characters, followed by the current line terminator, to the standard output stream.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 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 methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 WriteLine(Object) Infrastructure. Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 WriteLine(String) Infrastructure. Writes the specified string value, followed by the current line terminator, to the standard output stream.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 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 methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 WriteLine(String, array<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 methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 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 methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 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

See Also

Reference