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
|