Table of Contents

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

device IBluetoothRemoteDevice

The Bluetooth device associated with the exception.

services IEnumerable<IBluetoothRemoteService>

The services that were found matching the criteria.

innerException Exception

The 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

device IBluetoothRemoteDevice

The Bluetooth device associated with the exception.

id Guid

The id of the services that were found matching the criteria.

services IEnumerable<IBluetoothRemoteService>

The services that were found matching the criteria.

innerException Exception

The 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; }

Property Value

IEnumerable<IBluetoothRemoteService>

See Also