Table of Contents

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

received EventHandler<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

disposing bool

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

Parameters

sender object

The object that raised the exception.

e Exception

The exception that was not handled.