Delen via


BluetoothLEDevice.NameChanged Event

Definition

Occurs when the name of the device has changed.

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

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

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

Event Type

Windows requirements

App capabilities
bluetooth

Remarks

In your handler for this event, to get the name query the BluetoothLEDevice.Name property on the BluetoothLEDevice that's passed to your handler.

Applies to