Table of Contents

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

remoteDescriptor IBluetoothRemoteDescriptor

The Bluetooth descriptor associated with the exception.

value ReadOnlyMemory<byte>?

The value that was being written when the exception occurred.

message string

A message that describes the error.

innerException Exception

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

Property Value

ReadOnlyMemory<byte>?