GattLocalDescriptor.WriteRequested 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
要求寫入時所觸發的事件。
// Register
event_token WriteRequested(TypedEventHandler<GattLocalDescriptor, GattWriteRequestedEventArgs const&> const& handler) const;
// Revoke with event_token
void WriteRequested(event_token const* cookie) const;
// Revoke with event_revoker
GattLocalDescriptor::WriteRequested_revoker WriteRequested(auto_revoke_t, TypedEventHandler<GattLocalDescriptor, GattWriteRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<GattLocalDescriptor,GattWriteRequestedEventArgs> WriteRequested;
function onWriteRequested(eventArgs) { /* Your code */ }
gattLocalDescriptor.addEventListener("writerequested", onWriteRequested);
gattLocalDescriptor.removeEventListener("writerequested", onWriteRequested);
- or -
gattLocalDescriptor.onwriterequested = onWriteRequested;
Public Custom Event WriteRequested As TypedEventHandler(Of GattLocalDescriptor, GattWriteRequestedEventArgs)
事件類型
Windows 需求
應用程式功能 |
bluetooth
|