Radio.StateChanged 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
由這個物件所表示之單選中的狀態變更所引發的事件。 移除 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)
事件類型
TypedEventHandler<Radio,IInspectable>