BluetoothDevice.SdpRecordsChanged 事件

定义

当设备的 SDP 记录列表已更改时发生。

// Register
event_token SdpRecordsChanged(TypedEventHandler<BluetoothDevice, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
BluetoothDevice::SdpRecordsChanged_revoker SdpRecordsChanged(auto_revoke_t, TypedEventHandler<BluetoothDevice, IInspectable const&> const& handler) const;
public event TypedEventHandler<BluetoothDevice,object> SdpRecordsChanged;
function onSdpRecordsChanged(eventArgs) { /* Your code */ }
bluetoothDevice.addEventListener("sdprecordschanged", onSdpRecordsChanged);
bluetoothDevice.removeEventListener("sdprecordschanged", onSdpRecordsChanged);
- or -
bluetoothDevice.onsdprecordschanged = onSdpRecordsChanged;
Public Custom Event SdpRecordsChanged As TypedEventHandler(Of BluetoothDevice, Object) 

事件类型

Windows 要求

应用功能
bluetooth

适用于