다음을 통해 공유


BluetoothLEDevice.ConnectionStatusChanged 이벤트

정의

디바이스에 대한 연결 상태 변경된 경우에 발생합니다.

// Register
event_token ConnectionStatusChanged(TypedEventHandler<BluetoothLEDevice, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
BluetoothLEDevice::ConnectionStatusChanged_revoker ConnectionStatusChanged(auto_revoke_t, TypedEventHandler<BluetoothLEDevice, IInspectable const&> const& handler) const;
public event TypedEventHandler<BluetoothLEDevice,object> ConnectionStatusChanged;
function onConnectionStatusChanged(eventArgs) { /* Your code */ }
bluetoothLEDevice.addEventListener("connectionstatuschanged", onConnectionStatusChanged);
bluetoothLEDevice.removeEventListener("connectionstatuschanged", onConnectionStatusChanged);
- or -
bluetoothLEDevice.onconnectionstatuschanged = onConnectionStatusChanged;
Public Custom Event ConnectionStatusChanged As TypedEventHandler(Of BluetoothLEDevice, Object) 

이벤트 유형

Windows 요구 사항

앱 기능
bluetooth

설명

이 이벤트에 대한 처리기에서 연결을 상태 처리기에 전달된 BluetoothLEDevice의 BluetoothLEDevice.ConnectionStatus 속성을 쿼리합니다.

적용 대상