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
- buffer
Type: array<System. . :: . .Char> [] () [] []
The character array from which data is read.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.