Class MultipleCharacteristicsFoundException
- Namespace
- Bluetooth.Abstractions.Broadcasting.Exceptions
- Assembly
- Bluetooth.Abstractions.Broadcasting.dll
Represents an exception that occurs when multiple characteristics are found matching criteria.
public class MultipleCharacteristicsFoundException : ServiceException, ISerializable
- Inheritance
-
MultipleCharacteristicsFoundException
- Implements
- Inherited Members
Constructors
MultipleCharacteristicsFoundException(IBluetoothLocalService, IEnumerable<IBluetoothLocalCharacteristic>, Exception?)
Initializes a new instance of the MultipleCharacteristicsFoundException class.
public MultipleCharacteristicsFoundException(IBluetoothLocalService localService, IEnumerable<IBluetoothLocalCharacteristic> characteristics, Exception? innerException = null)
Parameters
localServiceIBluetoothLocalServiceThe Bluetooth service associated with the exception.
characteristicsIEnumerable<IBluetoothLocalCharacteristic>The characteristics that were found matching the criteria.
innerExceptionExceptionThe inner exception that caused the current exception.
MultipleCharacteristicsFoundException(IBluetoothLocalService, Guid, IEnumerable<IBluetoothLocalCharacteristic>, Exception)
Initializes a new instance of the MultipleCharacteristicsFoundException class.
public MultipleCharacteristicsFoundException(IBluetoothLocalService localService, Guid id, IEnumerable<IBluetoothLocalCharacteristic> characteristics, Exception innerException)
Parameters
localServiceIBluetoothLocalServiceThe Bluetooth service associated with the exception.
idGuidThe id of the characteristics that were found matching the criteria.
characteristicsIEnumerable<IBluetoothLocalCharacteristic>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<IBluetoothLocalCharacteristic> Characteristics { get; }