Language

Console.ReadPasswordAsync Method

Definition

Overloads

Name Description
ReadPasswordAsync()

Reads a password without console echo in a task.

ReadPasswordAsync(String, Object[])

Displays a formatted prompt and reads a password without echo in a task.

ReadPasswordAsync()

Reads a password without console echo in a task.

public System.Threading.Tasks.Task<char[]?> ReadPasswordAsync();
member this.ReadPasswordAsync : unit -> System.Threading.Tasks.Task<char[]>

Returns

Task<Char[]>

A task whose result is the password character array without its line terminator, or null if input ends before any characters are read.

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

ReadPasswordAsync(String, Object[])

Displays a formatted prompt and reads a password without echo in a task.

public System.Threading.Tasks.Task<char[]?> ReadPasswordAsync(string? fmt, params Java.Lang.Object[]? args);
member this.ReadPasswordAsync : string * Java.Lang.Object[] -> System.Threading.Tasks.Task<char[]>

Parameters

fmt
String

The Java format string used for the prompt.

args
Object[]

The values supplied to the prompt's format string.

Returns

Task<Char[]>

A task whose result is the password character array without its line terminator, or null if input ends before any characters are read.

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