共用方式為


GattCharacteristic.WriteClientCharacteristicConfigurationDescriptorAsync 方法

定義

將 ClientCharacteristicConfigurationDescriptor 寫入藍牙 LE 裝置,如果要寫入的值代表指示或通知,且已登錄 ValueChanged 事件處理常式,則可讓您從裝置接收 ValueChanged 事件。

public:
 virtual IAsyncOperation<GattCommunicationStatus> ^ WriteClientCharacteristicConfigurationDescriptorAsync(GattClientCharacteristicConfigurationDescriptorValue clientCharacteristicConfigurationDescriptorValue) = WriteClientCharacteristicConfigurationDescriptorAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattCommunicationStatus> WriteClientCharacteristicConfigurationDescriptorAsync(GattClientCharacteristicConfigurationDescriptorValue const& clientCharacteristicConfigurationDescriptorValue);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattCommunicationStatus> WriteClientCharacteristicConfigurationDescriptorAsync(GattClientCharacteristicConfigurationDescriptorValue clientCharacteristicConfigurationDescriptorValue);
function writeClientCharacteristicConfigurationDescriptorAsync(clientCharacteristicConfigurationDescriptorValue)
Public Function WriteClientCharacteristicConfigurationDescriptorAsync (clientCharacteristicConfigurationDescriptorValue As GattClientCharacteristicConfigurationDescriptorValue) As IAsyncOperation(Of GattCommunicationStatus)

參數

clientCharacteristicConfigurationDescriptorValue
GattClientCharacteristicConfigurationDescriptorValue

指定這個 Characteristic 物件的 ClientCharacteristicConfigurationDescriptor 的新值。

傳回

管理非同步作業的物件會在完成時傳回作業完成的狀態。

屬性

Windows 需求

應用程式功能
bluetooth

適用於