Language

PrintWriter.PrintAsync Method

Definition

Overloads

Name Description
PrintAsync(Single)

Prints a single-precision value in a task.

PrintAsync(Int64)

Prints a 64-bit integer in a task.

PrintAsync(String)

Prints text in a task.

PrintAsync(Int32)

Prints a 32-bit integer in a task.

PrintAsync(Char)

Prints one character in a task.

PrintAsync(Char[])

Prints the character array in a task.

PrintAsync(Boolean)

Prints a Boolean value in a task.

PrintAsync(Object)

Prints an object's text representation in a task.

PrintAsync(Double)

Prints a double-precision value in a task.

PrintAsync(Single)

Prints a single-precision value in a task.

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

Parameters

f
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

PrintAsync(Int64)

Prints a 64-bit integer in a task.

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

Parameters

l
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

PrintAsync(String)

Prints text in a task.

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

Parameters

s
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

PrintAsync(Int32)

Prints a 32-bit integer in a task.

public System.Threading.Tasks.Task PrintAsync(int i);
member this.PrintAsync : int -> System.Threading.Tasks.Task

Parameters

i
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

PrintAsync(Char)

Prints one character in a task.

public System.Threading.Tasks.Task PrintAsync(char c);
member this.PrintAsync : char -> System.Threading.Tasks.Task

Parameters

c
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

PrintAsync(Char[])

Prints the character array in a task.

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

Parameters

s
Char[]

The characters 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

PrintAsync(Boolean)

Prints a Boolean value in a task.

public System.Threading.Tasks.Task PrintAsync(bool b);
member this.PrintAsync : bool -> System.Threading.Tasks.Task

Parameters

b
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

PrintAsync(Object)

Prints an object's text representation in a task.

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

Parameters

obj
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

PrintAsync(Double)

Prints a double-precision value in a task.

public System.Threading.Tasks.Task PrintAsync(double d);
member this.PrintAsync : double -> System.Threading.Tasks.Task

Parameters

d
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