Dela via


GattCharacteristic.WriteValueWithResultAsync Method

Definition

Overloads

WriteValueWithResultAsync(IBuffer)

Performs a Characteristic Value write to a Bluetooth LE device.

WriteValueWithResultAsync(IBuffer, GattWriteOption)

Performs a Characteristic Value write to a Bluetooth LE device.

WriteValueWithResultAsync(IBuffer)

Performs a Characteristic Value write to a Bluetooth LE device.

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

Parameters

value
IBuffer

A Windows.Storage.Streams.IBuffer object which contains the data to be written to the Bluetooth LE device.

Returns

An asynchronous operation that completes with a GattWriteResult object.

Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)
App capabilities
bluetooth

Applies to

WriteValueWithResultAsync(IBuffer, GattWriteOption)

Performs a Characteristic Value write to a Bluetooth LE device.

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

Parameters

value
IBuffer

A Windows.Storage.Streams.IBuffer object which contains the data to be written to the Bluetooth LE device.

writeOption
GattWriteOption

Specifies what type of GATT write should be performed.

Returns

An asynchronous operation that completes with a GattWriteResult object.

Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)
App capabilities
bluetooth

Applies to