AccountManager.SetPassword(Account, String) 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.
Sets or forgets a saved password.
[Android.Runtime.Register("setPassword", "(Landroid/accounts/Account;Ljava/lang/String;)V", "GetSetPassword_Landroid_accounts_Account_Ljava_lang_String_Handler")]
[Android.Runtime.RequiresPermission("android.permission.AUTHENTICATE_ACCOUNTS")]
public virtual void SetPassword (Android.Accounts.Account? account, string? password);
[<Android.Runtime.Register("setPassword", "(Landroid/accounts/Account;Ljava/lang/String;)V", "GetSetPassword_Landroid_accounts_Account_Ljava_lang_String_Handler")>]
[<Android.Runtime.RequiresPermission("android.permission.AUTHENTICATE_ACCOUNTS")>]
abstract member SetPassword : Android.Accounts.Account * string -> unit
override this.SetPassword : Android.Accounts.Account * string -> unit
Parameters
- account
- Account
The account whose password is to be set. Cannot be
null.
- password
- String
The password to set, null to clear the password
- Attributes
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.