Class BluetoothUnhandledExceptionListener
- Namespace
- Bluetooth.Abstractions.Exceptions
- Assembly
- Bluetooth.Abstractions.dll
Provides a mechanism for listening to and handling unhandled Bluetooth exceptions.
public class BluetoothUnhandledExceptionListener : ExceptionListener, IDisposable
- Inheritance
-
BluetoothUnhandledExceptionListener
- Implements
- Inherited Members
Constructors
BluetoothUnhandledExceptionListener(EventHandler<ExceptionEventArgs>)
Initializes a new instance of the BluetoothUnhandledExceptionListener class.
public BluetoothUnhandledExceptionListener(EventHandler<ExceptionEventArgs> received)
Parameters
receivedEventHandler<ExceptionEventArgs>The event handler to call when an unhandled exception occurs.
Methods
Dispose(bool)
Releases the unmanaged resources used by the BluetoothUnhandledExceptionListener and optionally releases the managed resources.
protected override void Dispose(bool disposing)
Parameters
disposingbooltrue to release both managed and unmanaged resources; false to release only unmanaged resources.
OnBluetoothUnhandledException(object?, Exception)
Dispatches an unhandled Bluetooth exception to all registered listeners.
public static void OnBluetoothUnhandledException(object? sender, Exception e)