Compartir a través de


BluetoothLEDevice.NameChanged Evento

Definición

Se produce cuando el nombre del dispositivo ha cambiado.

// 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) 

Tipo de evento

Requisitos de Windows

Características de aplicaciones
bluetooth

Comentarios

En el controlador de este evento, para obtener el nombre, consulte la propiedad BluetoothLEDevice.Name en el dispositivo BluetoothLEDevice que se pasa al controlador.

Se aplica a