Radio.StateChanged 事件

定义

由此 对象表示的无线电中的状态更改引发的事件。 当删除 USB 蓝牙无线电或以其他方式脱机时,不会报告任何状态更改。

// Register
event_token StateChanged(TypedEventHandler<Radio, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
Radio::StateChanged_revoker StateChanged(auto_revoke_t, TypedEventHandler<Radio, IInspectable const&> const& handler) const;
public event TypedEventHandler<Radio,object> StateChanged;
function onStateChanged(eventArgs) { /* Your code */ }
radio.addEventListener("statechanged", onStateChanged);
radio.removeEventListener("statechanged", onStateChanged);
- or -
radio.onstatechanged = onStateChanged;
Public Custom Event StateChanged As TypedEventHandler(Of Radio, Object) 

事件类型

适用于