GattCharacteristic.WriteClientCharacteristicConfigurationDescriptorWithResultAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将 ClientCharacteristicConfigurationDescriptor 写入蓝牙 LE 设备,如果要写入的值表示指示或通知,并且注册了 ValueChanged 事件处理程序,则启用从设备接收 ValueChanged 事件。
public:
virtual IAsyncOperation<GattWriteResult ^> ^ WriteClientCharacteristicConfigurationDescriptorWithResultAsync(GattClientCharacteristicConfigurationDescriptorValue clientCharacteristicConfigurationDescriptorValue) = WriteClientCharacteristicConfigurationDescriptorWithResultAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattWriteResult> WriteClientCharacteristicConfigurationDescriptorWithResultAsync(GattClientCharacteristicConfigurationDescriptorValue const& clientCharacteristicConfigurationDescriptorValue);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattWriteResult> WriteClientCharacteristicConfigurationDescriptorWithResultAsync(GattClientCharacteristicConfigurationDescriptorValue clientCharacteristicConfigurationDescriptorValue);
function writeClientCharacteristicConfigurationDescriptorWithResultAsync(clientCharacteristicConfigurationDescriptorValue)
Public Function WriteClientCharacteristicConfigurationDescriptorWithResultAsync (clientCharacteristicConfigurationDescriptorValue As GattClientCharacteristicConfigurationDescriptorValue) As IAsyncOperation(Of GattWriteResult)
参数
- clientCharacteristicConfigurationDescriptorValue
- GattClientCharacteristicConfigurationDescriptorValue
为此 Characteristic 对象的 ClientCharacteristicConfigurationDescriptor 指定新值。
返回
返回使用 GattWriteResult 对象完成的异步操作。
- 属性
Windows 要求
设备系列 |
Windows 10 Creators Update (在 10.0.15063.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)
|
应用功能 |
bluetooth
|