Table of Contents

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

scanner IBluetoothScanner

The Bluetooth scanner associated with the exception.

devices IEnumerable<IBluetoothRemoteDevice>

The devices that were found matching the criteria.

innerException Exception

The 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

scanner IBluetoothScanner

The Bluetooth scanner associated with the exception.

id string

The id of the devices that were found matching the criteria.

devices IEnumerable<IBluetoothRemoteDevice>

The devices that were found matching the criteria.

innerException Exception

The inner exception that caused the current exception.

Properties

Devices

Gets the devices that were found matching the criteria.

public IEnumerable<IBluetoothRemoteDevice> Devices { get; }

Property Value

IEnumerable<IBluetoothRemoteDevice>

See Also