ContactsContract.Settings.ResetAccountAttributes 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.
Resets the attributes for a given account to their system-evaluated defaults.
[Android.Runtime.Register("resetAccountAttributes", "(Landroid/content/ContentResolver;Landroid/accounts/Account;Ljava/lang/String;)V", "", ApiSince=37)]
public static void ResetAccountAttributes(Android.Content.ContentResolver resolver, Android.Accounts.Account? account, string? dataSet);
[<Android.Runtime.Register("resetAccountAttributes", "(Landroid/content/ContentResolver;Landroid/accounts/Account;Ljava/lang/String;)V", "", ApiSince=37)>]
static member ResetAccountAttributes : Android.Content.ContentResolver * Android.Accounts.Account * string -> unit
Parameters
- resolver
- ContentResolver
The ContentResolver to use for the update. This value cannot be null.
- account
- Account
The target account whose name and type are included in the request; null omits those account fields.
- dataSet
- String
The data set within the account, which may be null.
- Attributes
Exceptions
The provider rejects the account as invalid.
The caller does not have permission to write contacts, the calling package is not the authenticator for the account type, or the provider rejects a null account.
The provider does not support resetting account attributes.
Remarks
Resets the attributes for a given account to their system-evaluated defaults.
This operation removes any explicit overrides set via SetAccountAttributes(ContentResolver, Account, String, Int64) and causes the system to immediately re-evaluate the account's attributes based on its type and other characteristics.
This method requires that the calling application be the authenticator for the account's type, as defined in AccountManager. Requires the WriteContacts permission.
Android reference for android.provider.ContactsContract.Settings.resetAccountAttributes.
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.