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
remoteServiceIBluetoothRemoteServiceThe Bluetooth service associated with the exception.
characteristicsIEnumerable<IBluetoothRemoteCharacteristic>The characteristics that were found matching the criteria.
innerExceptionExceptionThe 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
remoteServiceIBluetoothRemoteServiceThe Bluetooth service associated with the exception.
idGuidThe id of the characteristics that were found matching the criteria.
characteristicsIEnumerable<IBluetoothRemoteCharacteristic>The characteristics that were found matching the criteria.
innerExceptionExceptionThe inner exception that caused the current exception.
Properties
Characteristics
Gets the characteristics that were found matching the criteria.
public IEnumerable<IBluetoothRemoteCharacteristic> Characteristics { get; }