BluetoothDevice.NameChanged Событие
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Происходит при изменении имени устройства.
// Register
event_token NameChanged(TypedEventHandler<BluetoothDevice, IInspectable const&> const& handler) const;
// Revoke with event_token
void NameChanged(event_token const* cookie) const;
// Revoke with event_revoker
BluetoothDevice::NameChanged_revoker NameChanged(auto_revoke_t, TypedEventHandler<BluetoothDevice, IInspectable const&> const& handler) const;
public event TypedEventHandler<BluetoothDevice,object> NameChanged;
function onNameChanged(eventArgs) { /* Your code */ }
bluetoothDevice.addEventListener("namechanged", onNameChanged);
bluetoothDevice.removeEventListener("namechanged", onNameChanged);
- or -
bluetoothDevice.onnamechanged = onNameChanged;
Public Custom Event NameChanged As TypedEventHandler(Of BluetoothDevice, Object)
Тип события
TypedEventHandler<BluetoothDevice,IInspectable>
Требования к Windows
Возможности приложения |
bluetooth
|