BluetoothGattServer.RemoveService(BluetoothGattService) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將一項服務從提供的服務列表中移除。
[Android.Runtime.Register("removeService", "(Landroid/bluetooth/BluetoothGattService;)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool RemoveService(Android.Bluetooth.BluetoothGattService? service);
[<Android.Runtime.Register("removeService", "(Landroid/bluetooth/BluetoothGattService;)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.RemoveService : Android.Bluetooth.BluetoothGattService -> bool
參數
- service
- BluetoothGattService
服務將被移除。
傳回
如果服務已被移除,那是真的
- 屬性
備註
將一項服務從提供的服務列表中移除。
Java 文件 android.bluetooth.BluetoothGattServer.removeService(android.bluetooth.BluetoothGattService)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。