共用方式為


GattLocalCharacteristic.NotifyValueAsync 方法

定義

多載

NotifyValueAsync(IBuffer)

傳送並通知所有已訂閱的用戶端 GattSubscribedClient 值。

NotifyValueAsync(IBuffer, GattSubscribedClient)

傳送並通知 GattSubscribedClient 的值。

NotifyValueAsync(IBuffer)

傳送並通知所有已訂閱的用戶端 GattSubscribedClient 值。

public:
 virtual IAsyncOperation<IVectorView<GattClientNotificationResult ^> ^> ^ NotifyValueAsync(IBuffer ^ value) = NotifyValueAsync;
/// [Windows.Foundation.Metadata.Overload("NotifyValueAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<GattClientNotificationResult>> NotifyValueAsync(IBuffer const& value);
[Windows.Foundation.Metadata.Overload("NotifyValueAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<GattClientNotificationResult>> NotifyValueAsync(IBuffer value);
function notifyValueAsync(value)
Public Function NotifyValueAsync (value As IBuffer) As IAsyncOperation(Of IReadOnlyList(Of GattClientNotificationResult))

參數

value
IBuffer

緩衝區,其中包含要傳送至 GattSubscribedClient 的值。

傳回

非同步作業,會針對每個訂閱的用戶端使用所有 GattClientNotificationResult 的向量清單來完成。

屬性

Windows 需求

應用程式功能
bluetooth

適用於

NotifyValueAsync(IBuffer, GattSubscribedClient)

傳送並通知 GattSubscribedClient 的值。

public:
 virtual IAsyncOperation<GattClientNotificationResult ^> ^ NotifyValueAsync(IBuffer ^ value, GattSubscribedClient ^ subscribedClient) = NotifyValueAsync;
/// [Windows.Foundation.Metadata.Overload("NotifyValueForSubscribedClientAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattClientNotificationResult> NotifyValueAsync(IBuffer const& value, GattSubscribedClient const& subscribedClient);
[Windows.Foundation.Metadata.Overload("NotifyValueForSubscribedClientAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattClientNotificationResult> NotifyValueAsync(IBuffer value, GattSubscribedClient subscribedClient);
function notifyValueAsync(value, subscribedClient)
Public Function NotifyValueAsync (value As IBuffer, subscribedClient As GattSubscribedClient) As IAsyncOperation(Of GattClientNotificationResult)

參數

value
IBuffer

緩衝區,其中包含要傳送至 GattSubscribedClient 的值。

subscribedClient
GattSubscribedClient

訂閱的用戶端會通知值。

傳回

使用 GattClientNotificationResult 物件完成的非同步作業。

屬性

Windows 需求

應用程式功能
bluetooth

適用於