---
title: getID()
framework: IOBluetooth
role: symbol
role_heading: Instance Method
path: iobluetooth/iobluetoothsdpserviceattribute/getid()
---

# getID()

Returns the attribute ID for the target service attribute.

## Declaration

```swift
func getID() -> BluetoothSDPServiceAttributeID
```

## Return Value

Return Value Returns the attribute ID for the target service attribute.
