Class ServiceNotFoundException
- Namespace
- Bluetooth.Abstractions.Scanning.Exceptions
- Assembly
- Bluetooth.Abstractions.Scanning.dll
Represents an exception that occurs when a service is not found.
public class ServiceNotFoundException : ServiceExplorationException, ISerializable
- Inheritance
-
ServiceNotFoundException
- Implements
- Inherited Members
Constructors
ServiceNotFoundException(IBluetoothRemoteDevice, Exception?)
Initializes a new instance of the ServiceNotFoundException class.
public ServiceNotFoundException(IBluetoothRemoteDevice device, Exception? innerException = null)
Parameters
deviceIBluetoothRemoteDeviceThe Bluetooth device associated with the exception.
innerExceptionExceptionThe inner exception that caused the current exception, if any.
ServiceNotFoundException(IBluetoothRemoteDevice, Guid, Exception?)
Initializes a new instance of the ServiceNotFoundException class.
public ServiceNotFoundException(IBluetoothRemoteDevice device, Guid id, Exception? innerException = null)
Parameters
deviceIBluetoothRemoteDeviceThe Bluetooth device associated with the exception.
idGuidThe id of the service that was not found.
innerExceptionExceptionThe inner exception that caused the current exception, if any.