AccountManager.GetPassword(Account) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the saved password associated with the account.
[Android.Runtime.Register("getPassword", "(Landroid/accounts/Account;)Ljava/lang/String;", "GetGetPassword_Landroid_accounts_Account_Handler")]
[Android.Runtime.RequiresPermission("android.permission.AUTHENTICATE_ACCOUNTS")]
public virtual string? GetPassword (Android.Accounts.Account? account);
[<Android.Runtime.Register("getPassword", "(Landroid/accounts/Account;)Ljava/lang/String;", "GetGetPassword_Landroid_accounts_Account_Handler")>]
[<Android.Runtime.RequiresPermission("android.permission.AUTHENTICATE_ACCOUNTS")>]
abstract member GetPassword : Android.Accounts.Account -> string
override this.GetPassword : Android.Accounts.Account -> string
Parameters
- account
- Account
The account to query for a password. Must not be null.
Returns
The account's password, null if none or if the account doesn't exist
- Attributes
Remarks
Java documentation for android.accounts.AccountManager.getPassword(android.accounts.Account).
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.