DevicePolicyManager.SetBluetoothContactSharingDisabled 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
由受管理設定檔的設定檔擁有者呼叫,以設定藍牙裝置是否能存取企業聯絡人。
[Android.Runtime.Register("setBluetoothContactSharingDisabled", "(Landroid/content/ComponentName;Z)V", "GetSetBluetoothContactSharingDisabled_Landroid_content_ComponentName_ZHandler", ApiSince=23)]
public virtual void SetBluetoothContactSharingDisabled(Android.Content.ComponentName admin, bool disabled);
[<Android.Runtime.Register("setBluetoothContactSharingDisabled", "(Landroid/content/ComponentName;Z)V", "GetSetBluetoothContactSharingDisabled_Landroid_content_ComponentName_ZHandler", ApiSince=23)>]
abstract member SetBluetoothContactSharingDisabled : Android.Content.ComponentName * bool -> unit
override this.SetBluetoothContactSharingDisabled : Android.Content.ComponentName * bool -> unit
參數
- admin
- ComponentName
這個請求就是和這個 DeviceAdminReceiver 問題有關的。
- disabled
- Boolean
如果屬實,藍牙裝置無法存取企業聯絡人。
- 屬性
備註
由受管理設定檔的設定檔擁有者呼叫,以設定藍牙裝置是否能存取企業聯絡人。
通話裝置管理員必須是設定檔擁有者。 若不符合,則會拋出安全例外。
此 API 僅適用於受管理型態。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。