Windows Dev Center

Collapse the table of content
Expand the table of content
Expand Minimize
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

GattDescriptor class

Represents a Descriptor of a GATT Characteristic.

Syntax


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

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-onlyGets the GATT Attribute handle used to uniquely identify this attribute on the GATT Server Device.

ProtectionLevel

Read/writeGets or sets the desired GATT security options for over the air communication with the device.

Uuid

Read-onlyGets 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

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)]
[Version(0x06030000)]

See also

Object

 

 

Show:
© 2015 Microsoft