Class ServiceAlreadyExistsException
- Namespace
- Bluetooth.Abstractions.Broadcasting.Exceptions
- Assembly
- Bluetooth.Abstractions.Broadcasting.dll
Represents an exception that occurs when attempting to add a service that already exists to a Bluetooth broadcaster.
public class ServiceAlreadyExistsException : BroadcasterException, ISerializable
- Inheritance
-
ServiceAlreadyExistsException
- Implements
- Inherited Members
Constructors
ServiceAlreadyExistsException(IBluetoothBroadcaster, Guid, IBluetoothLocalService, string?, Exception?)
Initializes a new instance of the ServiceAlreadyExistsException class.
public ServiceAlreadyExistsException(IBluetoothBroadcaster broadcaster, Guid serviceId, IBluetoothLocalService existingLocalService, string? message = null, Exception? innerException = null)
Parameters
broadcasterIBluetoothBroadcasterThe Bluetooth broadcaster associated with the exception.
serviceIdGuidThe UUID of the service that already exists.
existingLocalServiceIBluetoothLocalServiceThe existing service that caused the exception.
messagestringA message that describes the error.
innerExceptionExceptionThe inner exception that caused the current exception, if any.
Properties
ExistingLocalService
Gets the existing service that caused the exception.
public IBluetoothLocalService ExistingLocalService { get; }
Property Value
ServiceId
Gets the UUID of the service that already exists.
public Guid ServiceId { get; }