BluetoothGattCharacteristic.AddDescriptor(BluetoothGattDescriptor) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
向此特征添加描述符。
[Android.Runtime.Register("addDescriptor", "(Landroid/bluetooth/BluetoothGattDescriptor;)Z", "GetAddDescriptor_Landroid_bluetooth_BluetoothGattDescriptor_Handler")]
public virtual bool AddDescriptor(Android.Bluetooth.BluetoothGattDescriptor? descriptor);
[<Android.Runtime.Register("addDescriptor", "(Landroid/bluetooth/BluetoothGattDescriptor;)Z", "GetAddDescriptor_Landroid_bluetooth_BluetoothGattDescriptor_Handler")>]
abstract member AddDescriptor : Android.Bluetooth.BluetoothGattDescriptor -> bool
override this.AddDescriptor : Android.Bluetooth.BluetoothGattDescriptor -> bool
参数
- descriptor
- BluetoothGattDescriptor
要添加到此特征的描述符。
返回
如果描述符已添加到特征中,则为 true
- 特性
注解
向此特征添加描述符。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。