共用方式為


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

適用於