Language

PrintStream.FormatAsync Method

Definition

Overloads

Name Description
FormatAsync(String, Object[])

Writes formatted output in a task.

FormatAsync(Locale, String, Object[])

Writes formatted output using the specified locale in a task.

FormatAsync(String, Object[])

Writes formatted output in a task.

public System.Threading.Tasks.Task<Java.IO.PrintStream?> FormatAsync(string? format, params Java.Lang.Object[]? args);
member this.FormatAsync : string * Java.Lang.Object[] -> System.Threading.Tasks.Task<Java.IO.PrintStream>

Parameters

format
String

The Java format string for the output.

args
Object[]

The values supplied to the format string.

Returns

A task whose result is this output stream. 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

FormatAsync(Locale, String, Object[])

Writes formatted output using the specified locale in a task.

public System.Threading.Tasks.Task<Java.IO.PrintStream?> FormatAsync(Java.Util.Locale? l, string? format, params Java.Lang.Object[]? args);
member this.FormatAsync : Java.Util.Locale * string * Java.Lang.Object[] -> System.Threading.Tasks.Task<Java.IO.PrintStream>

Parameters

l
Locale

The locale used for formatting, or null for no localization.

format
String

The Java format string for the output.

args
Object[]

The values supplied to the format string.

Returns

A task whose result is this output stream. 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