Class DescriptorWriteException
- Namespace
- Bluetooth.Abstractions.Scanning.Exceptions
- Assembly
- Bluetooth.Abstractions.Scanning.dll
Exception thrown when an error occurs while writing to a Bluetooth descriptor.
public class DescriptorWriteException : DescriptorException, ISerializable
- Inheritance
-
DescriptorWriteException
- Implements
- Inherited Members
Constructors
DescriptorWriteException(IBluetoothRemoteDescriptor, ReadOnlyMemory<byte>?, string, Exception?)
Initializes a new instance of the DescriptorWriteException class.
public DescriptorWriteException(IBluetoothRemoteDescriptor remoteDescriptor, ReadOnlyMemory<byte>? value = null, string message = "Unknown Bluetooth descriptor write exception", Exception? innerException = null)
Parameters
remoteDescriptorIBluetoothRemoteDescriptorThe Bluetooth descriptor associated with the exception.
valueReadOnlyMemory<byte>?The value that was being written when the exception occurred.
messagestringA message that describes the error.
innerExceptionExceptionThe inner exception that caused the current exception, if any.
Properties
Value
Gets a read-only collection of the value that was being written when the exception occurred.
public ReadOnlyMemory<byte>? Value { get; }