Class MultipleDescriptorsFoundException
- Namespace
- Bluetooth.Abstractions.Scanning.Exceptions
- Assembly
- Bluetooth.Abstractions.Scanning.dll
Represents an exception that occurs when multiple Descriptors are found matching criteria.
public class MultipleDescriptorsFoundException : DescriptorExplorationException, ISerializable
- Inheritance
-
MultipleDescriptorsFoundException
- Implements
- Inherited Members
Constructors
MultipleDescriptorsFoundException(IBluetoothRemoteCharacteristic, IEnumerable<IBluetoothRemoteDescriptor>, Exception?)
Initializes a new instance of the MultipleDescriptorsFoundException class.
public MultipleDescriptorsFoundException(IBluetoothRemoteCharacteristic remoteCharacteristic, IEnumerable<IBluetoothRemoteDescriptor> descriptors, Exception? innerException = null)
Parameters
remoteCharacteristicIBluetoothRemoteCharacteristicThe Bluetooth characteristic associated with the exception.
descriptorsIEnumerable<IBluetoothRemoteDescriptor>The Descriptors that were found matching the criteria.
innerExceptionExceptionThe inner exception that caused the current exception, if any.
MultipleDescriptorsFoundException(IBluetoothRemoteCharacteristic, Guid, IEnumerable<IBluetoothRemoteDescriptor>, Exception?)
Initializes a new instance of the MultipleDescriptorsFoundException class.
public MultipleDescriptorsFoundException(IBluetoothRemoteCharacteristic remoteCharacteristic, Guid id, IEnumerable<IBluetoothRemoteDescriptor> descriptors, Exception? innerException = null)
Parameters
remoteCharacteristicIBluetoothRemoteCharacteristicThe Bluetooth characteristic associated with the exception.
idGuidThe id of the Descriptors that were found matching the criteria.
descriptorsIEnumerable<IBluetoothRemoteDescriptor>The Descriptors that were found matching the criteria.
innerExceptionExceptionThe inner exception that caused the current exception, if any.
Properties
Descriptors
Gets the Descriptors that were found matching the criteria.
public IEnumerable<IBluetoothRemoteDescriptor> Descriptors { get; }