Dela via


GattDescriptor.WriteValueWithResultAsync(IBuffer) Method

Definition

Performs a Descriptor Value write to a Bluetooth LE device.

public:
 virtual IAsyncOperation<GattWriteResult ^> ^ WriteValueWithResultAsync(IBuffer ^ value) = WriteValueWithResultAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattWriteResult> WriteValueWithResultAsync(IBuffer const& value);
[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 the result.

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