AccountManager.RemoveAccountExplicitly(Account) Method

Definition

Removes an account directly.

[Android.Runtime.Register("removeAccountExplicitly", "(Landroid/accounts/Account;)Z", "GetRemoveAccountExplicitly_Landroid_accounts_Account_Handler", ApiSince=22)]
[Android.Runtime.RequiresPermission("android.permission.AUTHENTICATE_ACCOUNTS")]
public virtual bool RemoveAccountExplicitly (Android.Accounts.Account? account);
[<Android.Runtime.Register("removeAccountExplicitly", "(Landroid/accounts/Account;)Z", "GetRemoveAccountExplicitly_Landroid_accounts_Account_Handler", ApiSince=22)>]
[<Android.Runtime.RequiresPermission("android.permission.AUTHENTICATE_ACCOUNTS")>]
abstract member RemoveAccountExplicitly : Android.Accounts.Account -> bool
override this.RemoveAccountExplicitly : Android.Accounts.Account -> bool

Parameters

account
Account

The Account to delete.

Returns

Boolean

True if the account was successfully deleted, false if the account did not exist, the account is null, or another error occurs.

Attributes

Remarks

Java documentation for android.accounts.AccountManager.removeAccountExplicitly(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.

Applies to