Share via


WriteLine Method (String)

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

Writes a string 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 ( _
    value As String _
)
public virtual void WriteLine(
    string value
)
public:
virtual void WriteLine(
    String^ value
)
abstract WriteLine : 
        value:string -> unit 
override WriteLine : 
        value:string -> unit 
public function WriteLine(
    value : String
)

Parameters

  • value
    Type: System. . :: . .String
    The string to write. If value is nullNothingnullptrunita null reference (Nothing in Visual Basic), only the line terminator is written.

Remarks

This overload is equivalent to the Write(array<Char>[]()[][]) overload.

The line terminator is defined by the CoreNewLine field.

This method does not search the specified string for individual newline characters (hexadecimal 0x000a) and replace them with NewLine.

.NET Framework Security

See Also

Reference

TextWriter Class

WriteLine Overload

System.IO Namespace