共用方式為


GattCharacteristic.WriteValueAsync 方法

定義

多載

WriteValueAsync(IBuffer)

執行特性值寫入藍牙 LE 裝置。

WriteValueAsync(IBuffer, GattWriteOption)

執行特性值寫入藍牙 LE 裝置。

WriteValueAsync(IBuffer)

執行特性值寫入藍牙 LE 裝置。

public:
 virtual IAsyncOperation<GattCommunicationStatus> ^ WriteValueAsync(IBuffer ^ value) = WriteValueAsync;
/// [Windows.Foundation.Metadata.Overload("WriteValueAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattCommunicationStatus> WriteValueAsync(IBuffer const& value);
[Windows.Foundation.Metadata.Overload("WriteValueAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattCommunicationStatus> WriteValueAsync(IBuffer value);
function writeValueAsync(value)
Public Function WriteValueAsync (value As IBuffer) As IAsyncOperation(Of GattCommunicationStatus)

參數

value
IBuffer

Windows.Storage.Streams.IBuffer 物件,其中包含要寫入藍牙 LE 裝置的資料。

傳回

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

屬性

Windows 需求

應用程式功能
bluetooth

另請參閱

適用於

WriteValueAsync(IBuffer, GattWriteOption)

執行特性值寫入藍牙 LE 裝置。

public:
 virtual IAsyncOperation<GattCommunicationStatus> ^ WriteValueAsync(IBuffer ^ value, GattWriteOption writeOption) = WriteValueAsync;
/// [Windows.Foundation.Metadata.Overload("WriteValueWithOptionAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattCommunicationStatus> WriteValueAsync(IBuffer const& value, GattWriteOption const& writeOption);
[Windows.Foundation.Metadata.Overload("WriteValueWithOptionAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattCommunicationStatus> WriteValueAsync(IBuffer value, GattWriteOption writeOption);
function writeValueAsync(value, writeOption)
Public Function WriteValueAsync (value As IBuffer, writeOption As GattWriteOption) As IAsyncOperation(Of GattCommunicationStatus)

參數

value
IBuffer

Windows.Storage.Streams.IBuffer 物件,其中包含要寫入藍牙 LE 裝置的資料。

writeOption
GattWriteOption

指定應該執行的 GATT 寫入類型。

傳回

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

屬性

Windows 需求

應用程式功能
bluetooth

另請參閱

適用於