ContentResolver.MasterSyncAutomatically 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得套用至所有提供者和帳戶的全域自動同步設定。 -或- 設定套用至所有提供者和帳戶的全域自動同步設定。
public static bool MasterSyncAutomatically { [Android.Runtime.Register("getMasterSyncAutomatically", "()Z", "")] get; [Android.Runtime.Register("setMasterSyncAutomatically", "(Z)V", "")] set; }
[<get: Android.Runtime.Register("getMasterSyncAutomatically", "()Z", "")>]
[<set: Android.Runtime.Register("setMasterSyncAutomatically", "(Z)V", "")>]
static member MasterSyncAutomatically : bool with get, set
屬性值
套用至所有提供者和帳戶的全域自動同步設定
- 屬性
備註
屬性 getter 檔:
取得套用至所有提供者和帳戶的全域自動同步設定。 如果這是 false,則會忽略每個提供者的自動同步設定。
這個方法需要呼叫端保留權限 android.Manifest.permission#READ_SYNC_SETTINGS
。
的 android.content.ContentResolver.getMasterSyncAutomatically()
Java 檔。
屬性 setter 檔:
設定套用至所有提供者和帳戶的全域自動同步設定。 如果這是 false,則會忽略每個提供者的自動同步設定。
這個方法需要呼叫端保留權限 android.Manifest.permission#WRITE_SYNC_SETTINGS
。
的 android.content.ContentResolver.setMasterSyncAutomatically(boolean)
Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。