BluetoothDevice.ConnectionStatusChanged 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生于裝置的線上狀態變更時。
// Register
event_token ConnectionStatusChanged(TypedEventHandler<BluetoothDevice, IInspectable const&> const& handler) const;
// Revoke with event_token
void ConnectionStatusChanged(event_token const* cookie) const;
// Revoke with event_revoker
BluetoothDevice::ConnectionStatusChanged_revoker ConnectionStatusChanged(auto_revoke_t, TypedEventHandler<BluetoothDevice, IInspectable const&> const& handler) const;
public event TypedEventHandler<BluetoothDevice,object> ConnectionStatusChanged;
function onConnectionStatusChanged(eventArgs) { /* Your code */ }
bluetoothDevice.addEventListener("connectionstatuschanged", onConnectionStatusChanged);
bluetoothDevice.removeEventListener("connectionstatuschanged", onConnectionStatusChanged);
- or -
bluetoothDevice.onconnectionstatuschanged = onConnectionStatusChanged;
Public Custom Event ConnectionStatusChanged As TypedEventHandler(Of BluetoothDevice, Object)
事件類型
TypedEventHandler<BluetoothDevice,IInspectable>
Windows 需求
應用程式功能 |
bluetooth
|