Language

PrintWriter.PrintlnAsync Method

Definition

Overloads

Name Description
PrintlnAsync(String)

Prints text followed by the system line separator in a task.

PrintlnAsync(Single)

Prints a single-precision value followed by the system line separator in a task.

PrintlnAsync(Int64)

Prints a 64-bit integer followed by the system line separator in a task.

PrintlnAsync(Int32)

Prints a 32-bit integer followed by the system line separator in a task.

PrintlnAsync(Double)

Prints a double-precision value followed by the system line separator in a task.

PrintlnAsync(Char[])

Prints characters followed by the system line separator in a task.

PrintlnAsync(Boolean)

Prints a Boolean value followed by the system line separator in a task.

PrintlnAsync(Object)

Prints an object's text followed by the system line separator in a task.

PrintlnAsync()

Writes the system line separator in a task.

PrintlnAsync(Char)

Prints a character followed by the system line separator in a task.

PrintlnAsync(String)

Prints text followed by the system line separator in a task.

public System.Threading.Tasks.Task PrintlnAsync(string? x);
member this.PrintlnAsync : string -> System.Threading.Tasks.Task

Parameters

x
String

The text to print. A null string prints the text null.

Returns

A task for the print operation. Use CheckError() to check for I/O errors.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

PrintlnAsync(Single)

Prints a single-precision value followed by the system line separator in a task.

public System.Threading.Tasks.Task PrintlnAsync(float x);
member this.PrintlnAsync : single -> System.Threading.Tasks.Task

Parameters

x
Single

The floating-point value to print.

Returns

A task for the print operation. Use CheckError() to check for I/O errors.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

PrintlnAsync(Int64)

Prints a 64-bit integer followed by the system line separator in a task.

public System.Threading.Tasks.Task PrintlnAsync(long x);
member this.PrintlnAsync : int64 -> System.Threading.Tasks.Task

Parameters

x
Int64

The integer to print.

Returns

A task for the print operation. Use CheckError() to check for I/O errors.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

PrintlnAsync(Int32)

Prints a 32-bit integer followed by the system line separator in a task.

public System.Threading.Tasks.Task PrintlnAsync(int x);
member this.PrintlnAsync : int -> System.Threading.Tasks.Task

Parameters

x
Int32

The integer to print.

Returns

A task for the print operation. Use CheckError() to check for I/O errors.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

PrintlnAsync(Double)

Prints a double-precision value followed by the system line separator in a task.

public System.Threading.Tasks.Task PrintlnAsync(double x);
member this.PrintlnAsync : double -> System.Threading.Tasks.Task

Parameters

x
Double

The floating-point value to print.

Returns

A task for the print operation. Use CheckError() to check for I/O errors.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

PrintlnAsync(Char[])

Prints characters followed by the system line separator in a task.

public System.Threading.Tasks.Task PrintlnAsync(char[]? x);
member this.PrintlnAsync : char[] -> System.Threading.Tasks.Task

Parameters

x
Char[]

The characters to print before the line separator.

Returns

A task for the print operation. Use CheckError() to check for I/O errors.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

PrintlnAsync(Boolean)

Prints a Boolean value followed by the system line separator in a task.

public System.Threading.Tasks.Task PrintlnAsync(bool x);
member this.PrintlnAsync : bool -> System.Threading.Tasks.Task

Parameters

x
Boolean

The value to print as true or false.

Returns

A task for the print operation. Use CheckError() to check for I/O errors.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

PrintlnAsync(Object)

Prints an object's text followed by the system line separator in a task.

public System.Threading.Tasks.Task PrintlnAsync(Java.Lang.Object? x);
member this.PrintlnAsync : Java.Lang.Object -> System.Threading.Tasks.Task

Parameters

x
Object

The object whose Java text representation is printed. A null object prints the text null.

Returns

A task for the print operation. Use CheckError() to check for I/O errors.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

PrintlnAsync()

Writes the system line separator in a task.

public System.Threading.Tasks.Task PrintlnAsync();
member this.PrintlnAsync : unit -> System.Threading.Tasks.Task

Returns

A task for writing the line separator. Use CheckError() to check for I/O errors.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

PrintlnAsync(Char)

Prints a character followed by the system line separator in a task.

public System.Threading.Tasks.Task PrintlnAsync(char x);
member this.PrintlnAsync : char -> System.Threading.Tasks.Task

Parameters

x
Char

The character to print.

Returns

A task for the print operation. Use CheckError() to check for I/O errors.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to