Share via


WriteLine Method (Char[])

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Writes an array of characters followed by a line terminator to the text string or stream.

Namespace:  System.IO
Assembly:  System.IO (in System.IO.dll)

Syntax

'Declaration
Public Overridable Sub WriteLine ( _
    buffer As Char() _
)
public virtual void WriteLine(
    char[] buffer
)
public:
virtual void WriteLine(
    array<wchar_t>^ buffer
)
abstract WriteLine : 
        buffer:char[] -> unit 
override WriteLine : 
        buffer:char[] -> unit 
public function WriteLine(
    buffer : char[]
)

Parameters

Remarks

All the characters in buffer are written to the underlying stream. If the character array is null Nothing nullptr unit a null reference (Nothing in Visual Basic) , only the line terminator is written.

This overload is equivalent to Write(array<Char>[]()[][]) followed by WriteLine()()()() .

The line terminator is defined by the CoreNewLine field.

.NET Framework Security

See Also

Reference

TextWriter Class

WriteLine Overload

System.IO Namespace