Skip to main content
GattDescriptor class

Represents a Descriptor of a GATT Characteristic.

Syntax


var gattDescriptor = Windows.Devices.Bluetooth.GenericAttributeProfile.GattDescriptor;

public sealed class GattDescriptor

Public NotInheritable Class GattDescriptor

public ref class GattDescriptor sealed 

Members

The GattDescriptor class has these types of members:

Methods

The GattDescriptor class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
ConvertShortIdToUuid Converts a Bluetooth SIG defined short Id to a full GATT UUID.
ReadValueAsync Performs a Descriptor Value read from a value cache maintained by Windows.
ReadValueAsync(BluetoothCacheMode) Performs a Descriptor Value read either from the value cache maintained by Windows, or directly from the device.
WriteValueAsync Performs a Descriptor Value write to a Bluetooth LE device.

 

Properties

The GattDescriptor class has these properties.

PropertyAccess typeDescription

AttributeHandle

Read-only

Gets the GATT Attribute handle used to uniquely identify this attribute on the GATT Server Device.

ProtectionLevel

Read/write

Gets or sets the desired GATT security options for over the air communication with the device.

Uuid

Read-only

Gets the GATT Descriptor UUID for this GattDescriptor.

 

Remarks

The GattDescriptor object represents a GATT Descriptor of a particular characteristic, and is obtained from the Descriptors property of the GattCharacteristic object.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0 [for Xbox, see UWP features that aren't yet supported on Xbox]

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Devices.Bluetooth.GenericAttributeProfile
Windows::Devices::Bluetooth::GenericAttributeProfile [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Devices.Bluetooth.GenericAttributeProfile
Windows::Devices::Bluetooth::GenericAttributeProfile [C++]

Metadata

Windows.winmd

Attributes

[ DualApiPartition()]
[ MarshalingBehavior(Agile)]
[ Threading(Both)]
[ Version(0x06030000)]

See also

Object