Class DeviceFailedToDisconnectException
- Namespace
- Bluetooth.Abstractions.Scanning.Exceptions
- Assembly
- Bluetooth.Abstractions.Scanning.dll
Represents an exception that occurs when a Bluetooth device fails to disconnect.
public class DeviceFailedToDisconnectException : DeviceException, ISerializable
- Inheritance
-
DeviceFailedToDisconnectException
- Implements
- Inherited Members
Constructors
DeviceFailedToDisconnectException(IBluetoothRemoteDevice, string, Exception?)
Initializes a new instance of the DeviceFailedToDisconnectException class.
public DeviceFailedToDisconnectException(IBluetoothRemoteDevice device, string message = "Failed to disconnect", Exception? innerException = null)
Parameters
deviceIBluetoothRemoteDeviceThe Bluetooth device associated with the exception.
messagestringA message that describes the error.
innerExceptionExceptionThe inner exception that caused the current exception, if any.