Settings.Secure.PutLong(ContentResolver, String, Int64) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
方便函數,將安全設定值更新為長整數。
[Android.Runtime.Register("putLong", "(Landroid/content/ContentResolver;Ljava/lang/String;J)Z", "")]
public static bool PutLong(Android.Content.ContentResolver? cr, string? name, long value);
[<Android.Runtime.Register("putLong", "(Landroid/content/ContentResolver;Ljava/lang/String;J)Z", "")>]
static member PutLong : Android.Content.ContentResolver * string * int64 -> bool
參數
存取 ContentResolver。
- name
- String
要修改的設定名稱。
- value
- Int64
設定的新價值。
傳回
若設定值為 true,則為 false 資料庫錯誤
- 屬性
備註
方便函數,將安全設定值更新為長整數。 若該名稱不存在,這會在表格中建立新條目,或修改該名稱的現有列值。 請注意,內部設定的值總是以字串形式儲存,因此這個函式會在儲存前將給定值轉換成字串。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。