语言

ContentResolver.RemovePeriodicSync(Account, String, Bundle) 方法

定义

删除定期同步。

[Android.Runtime.Register("removePeriodicSync", "(Landroid/accounts/Account;Ljava/lang/String;Landroid/os/Bundle;)V", "")]
public static void RemovePeriodicSync(Android.Accounts.Account? account, string? authority, Android.OS.Bundle? extras);
[<Android.Runtime.Register("removePeriodicSync", "(Landroid/accounts/Account;Ljava/lang/String;Landroid/os/Bundle;)V", "")>]
static member RemovePeriodicSync : Android.Accounts.Account * string * Android.OS.Bundle -> unit

参数

account
Account

要删除的定期同步的帐户

authority
String

要删除的定期同步的提供程序

extras
Bundle

要删除的定期同步的额外内容

属性

注解

删除定期同步。如果帐户、颁发机构和额外内容与现有定期同步不匹配,则没有任何影响。

此方法要求调用方持有权限 android.Manifest.permission#WRITE_SYNC_SETTINGS。

Java文档android.content.ContentResolver.removePeriodicSync(android.accounts.Account, java.lang.String, android.os.Bundle)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于