Class MultipleDevicesFoundException
- Namespace
- Bluetooth.Abstractions.Scanning.Exceptions
- Assembly
- Bluetooth.Abstractions.Scanning.dll
Represents an exception that occurs when multiple devices are found matching criteria.
public class MultipleDevicesFoundException : DeviceExplorationException, ISerializable
- Inheritance
-
MultipleDevicesFoundException
- Implements
- Inherited Members
Constructors
MultipleDevicesFoundException(IBluetoothScanner, IEnumerable<IBluetoothRemoteDevice>, Exception)
Initializes a new instance of the MultipleDevicesFoundException class.
public MultipleDevicesFoundException(IBluetoothScanner scanner, IEnumerable<IBluetoothRemoteDevice> devices, Exception innerException)
Parameters
scannerIBluetoothScannerThe Bluetooth scanner associated with the exception.
devicesIEnumerable<IBluetoothRemoteDevice>The devices that were found matching the criteria.
innerExceptionExceptionThe inner exception that caused the current exception.
MultipleDevicesFoundException(IBluetoothScanner, string, IEnumerable<IBluetoothRemoteDevice>, Exception)
Initializes a new instance of the MultipleDevicesFoundException class.
public MultipleDevicesFoundException(IBluetoothScanner scanner, string id, IEnumerable<IBluetoothRemoteDevice> devices, Exception innerException)
Parameters
scannerIBluetoothScannerThe Bluetooth scanner associated with the exception.
idstringThe id of the devices that were found matching the criteria.
devicesIEnumerable<IBluetoothRemoteDevice>The devices that were found matching the criteria.
innerExceptionExceptionThe inner exception that caused the current exception.
Properties
Devices
Gets the devices that were found matching the criteria.
public IEnumerable<IBluetoothRemoteDevice> Devices { get; }