Udostępnij za pośrednictwem


Console.ReadPassword Method

Definition

Overloads

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
args
Object[]

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().

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