Class MultipleServicesFoundException
- Namespace
- Bluetooth.Abstractions.Scanning.Exceptions
- Assembly
- Bluetooth.Abstractions.Scanning.dll
Represents an exception that occurs when multiple services are found matching criteria.
public class MultipleServicesFoundException : ServiceExplorationException, ISerializable
- Inheritance
-
MultipleServicesFoundException
- Implements
- Inherited Members
Constructors
MultipleServicesFoundException(IBluetoothRemoteDevice, IEnumerable<IBluetoothRemoteService>, Exception?)
Initializes a new instance of the MultipleServicesFoundException class.
public MultipleServicesFoundException(IBluetoothRemoteDevice device, IEnumerable<IBluetoothRemoteService> services, Exception? innerException = null)
Parameters
deviceIBluetoothRemoteDeviceThe Bluetooth device associated with the exception.
servicesIEnumerable<IBluetoothRemoteService>The services that were found matching the criteria.
innerExceptionExceptionThe inner exception that caused the current exception, if any.
MultipleServicesFoundException(IBluetoothRemoteDevice, Guid, IEnumerable<IBluetoothRemoteService>, Exception?)
Initializes a new instance of the MultipleServicesFoundException class.
public MultipleServicesFoundException(IBluetoothRemoteDevice device, Guid id, IEnumerable<IBluetoothRemoteService> services, Exception? innerException = null)
Parameters
deviceIBluetoothRemoteDeviceThe Bluetooth device associated with the exception.
idGuidThe id of the services that were found matching the criteria.
servicesIEnumerable<IBluetoothRemoteService>The services that were found matching the criteria.
innerExceptionExceptionThe inner exception that caused the current exception, if any.
Properties
Services
Gets the services that were found matching the criteria.
public IEnumerable<IBluetoothRemoteService> Services { get; }