Dil

Console.ReadPassword Method

Definition

Overloads

Name Description
ReadPassword()

Reads a password or passphrase from the console with echoing disabled

ReadPassword(String, Object[])

Reads a password or passphrase from the console with echoing disabled

ReadPassword()

Reads a password or passphrase from the console with echoing disabled

[Android.Runtime.Register("readPassword", "()[C", "")]
public char[]? ReadPassword();
[<Android.Runtime.Register("readPassword", "()[C", "")>]
member this.ReadPassword : unit -> char[]

Returns

Char[]

A character array containing the password or passphrase read from the console, not including any line-termination characters, or null if an end of stream has been reached.

Attributes

Remarks

Reads a password or passphrase from the console with echoing disabled

Java documentation for java.io.Console.readPassword().

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

ReadPassword(String, Object[])

Reads a password or passphrase from the console with echoing disabled

[Android.Runtime.Register("readPassword", "(Ljava/lang/String;[Ljava/lang/Object;)[C", "")]
public char[]? ReadPassword(string? fmt, params Java.Lang.Object[]? args);
[<Android.Runtime.Register("readPassword", "(Ljava/lang/String;[Ljava/lang/Object;)[C", "")>]
member this.ReadPassword : string * Java.Lang.Object[] -> char[]

Parameters

fmt
String

A format string as described in Format string syntax for the prompt text.

args
Object[]

Arguments referenced by the format specifiers in the format string. If there are more arguments than format specifiers, the extra arguments are ignored. The maximum number of arguments is limited by the maximum dimension of a Java array as defined by The Java Virtual Machine Specification.

Returns

Char[]

A character array containing the password or passphrase read from the console, not including any line-termination characters, or null if an end of stream has been reached.

Attributes

Remarks

Java documentation for java.io.Console.readPassword().

Java reference for java.io.Console.readPassword.

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