Table of Contents

Class DescriptorCantWriteException

Namespace
Bluetooth.Abstractions.Scanning.Exceptions
Assembly
Bluetooth.Abstractions.Scanning.dll

Exception thrown when attempting to write to a descriptor that doesn't support write operations.

public class DescriptorCantWriteException : DescriptorException, ISerializable
Inheritance
DescriptorCantWriteException
Implements
Inherited Members

Constructors

DescriptorCantWriteException(IBluetoothRemoteDescriptor)

Initializes a new instance of the DescriptorCantWriteException class.

public DescriptorCantWriteException(IBluetoothRemoteDescriptor remoteDescriptor)

Parameters

remoteDescriptor IBluetoothRemoteDescriptor

The descriptor that cannot be written.

Methods

ThrowIfCantWrite(IBluetoothRemoteDescriptor)

Throws a DescriptorCantWriteException if the specified descriptor cannot be written to.

public static void ThrowIfCantWrite(IBluetoothRemoteDescriptor remoteDescriptor)

Parameters

remoteDescriptor IBluetoothRemoteDescriptor

The Bluetooth descriptor to check.