共用方式為


GattLocalCharacteristic.SubscribedClientsChanged 事件

定義

當訂閱此本機特性的用戶端集合變更 (,也就是用戶端加入或移除該集合) 時,所引發的事件。

// Register
event_token SubscribedClientsChanged(TypedEventHandler<GattLocalCharacteristic, IInspectable const&> const& handler) const;

// Revoke with event_token
void SubscribedClientsChanged(event_token const* cookie) const;

// Revoke with event_revoker
GattLocalCharacteristic::SubscribedClientsChanged_revoker SubscribedClientsChanged(auto_revoke_t, TypedEventHandler<GattLocalCharacteristic, IInspectable const&> const& handler) const;
public event TypedEventHandler<GattLocalCharacteristic,object> SubscribedClientsChanged;
function onSubscribedClientsChanged(eventArgs) { /* Your code */ }
gattLocalCharacteristic.addEventListener("subscribedclientschanged", onSubscribedClientsChanged);
gattLocalCharacteristic.removeEventListener("subscribedclientschanged", onSubscribedClientsChanged);
- or -
gattLocalCharacteristic.onsubscribedclientschanged = onSubscribedClientsChanged;
Public Custom Event SubscribedClientsChanged As TypedEventHandler(Of GattLocalCharacteristic, Object) 

事件類型

Windows 需求

應用程式功能
bluetooth

備註

另請參閱 傳送通知給已訂閱的用戶端

適用於

另請參閱