Table of Contents

Class MultipleCharacteristicsFoundException

Namespace
Bluetooth.Abstractions.Scanning.Exceptions
Assembly
Bluetooth.Abstractions.Scanning.dll

Represents an exception that occurs when multiple characteristics are found matching criteria.

public class MultipleCharacteristicsFoundException : CharacteristicExplorationException, ISerializable
Inheritance
MultipleCharacteristicsFoundException
Implements
Inherited Members

Constructors

MultipleCharacteristicsFoundException(IBluetoothRemoteService, IEnumerable<IBluetoothRemoteCharacteristic>, Exception?)

Initializes a new instance of the MultipleCharacteristicsFoundException class.

public MultipleCharacteristicsFoundException(IBluetoothRemoteService remoteService, IEnumerable<IBluetoothRemoteCharacteristic> characteristics, Exception? innerException = null)

Parameters

remoteService IBluetoothRemoteService

The Bluetooth service associated with the exception.

characteristics IEnumerable<IBluetoothRemoteCharacteristic>

The characteristics that were found matching the criteria.

innerException Exception

The inner exception that caused the current exception.

MultipleCharacteristicsFoundException(IBluetoothRemoteService, Guid, IEnumerable<IBluetoothRemoteCharacteristic>, Exception)

Initializes a new instance of the MultipleCharacteristicsFoundException class.

public MultipleCharacteristicsFoundException(IBluetoothRemoteService remoteService, Guid id, IEnumerable<IBluetoothRemoteCharacteristic> characteristics, Exception innerException)

Parameters

remoteService IBluetoothRemoteService

The Bluetooth service associated with the exception.

id Guid

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

characteristics IEnumerable<IBluetoothRemoteCharacteristic>

The characteristics that were found matching the criteria.

innerException Exception

The inner exception that caused the current exception.

Properties

Characteristics

Gets the characteristics that were found matching the criteria.

public IEnumerable<IBluetoothRemoteCharacteristic> Characteristics { get; }

Property Value

IEnumerable<IBluetoothRemoteCharacteristic>

See Also