語言

DevicePolicyManager.SetBluetoothContactSharingDisabled 方法

定義

由受管理設定檔的設定檔擁有者呼叫,以設定藍牙裝置是否能存取企業聯絡人。

[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 僅適用於受管理型態。

Java 文件 android.app.admin.DevicePolicyManager.setBluetoothContactSharingDisabled(android.content.ComponentName, boolean)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於