Class CharacteristicWriteException
- Namespace
- Bluetooth.Abstractions.Scanning.Exceptions
- Assembly
- Bluetooth.Abstractions.Scanning.dll
Represents an exception that occurs during Bluetooth characteristic write operations.
public class CharacteristicWriteException : CharacteristicException, ISerializable
- Inheritance
-
CharacteristicWriteException
- Implements
- Derived
- Inherited Members
Constructors
CharacteristicWriteException(IBluetoothRemoteCharacteristic, ReadOnlyMemory<byte>?, string, Exception?)
Initializes a new instance of the CharacteristicWriteException class.
public CharacteristicWriteException(IBluetoothRemoteCharacteristic remoteCharacteristic, ReadOnlyMemory<byte>? value = null, string message = "Unknown Bluetooth characteristic write exception", Exception? innerException = null)
Parameters
remoteCharacteristicIBluetoothRemoteCharacteristicThe Bluetooth characteristic 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; }