---
title: "contains(_:)"
framework: IOBluetooth
role: symbol
role_heading: Instance Method
path: "iobluetooth/iobluetoothsdpdataelement/contains(_:)"
---

# contains(_:)

Checks to see if the target data element is the same as the dataElement parameter or if it contains the dataElement parameter (if its a sequence type).

## Declaration

```swift
func contains(_ dataElement: IOBluetoothSDPDataElement!) -> Bool
```

## Parameters

- `dataElement`: The data element to compare with (and search for).

## Return Value

Return Value Returns TRUE if the target either matches the given data element or if it contains the given data element.

## Discussion

Discussion If the target data element is not a sequence type, this method simply compares the two data elements. If it is a sequence type, it will search through the sequence (and sub-sequences) for the dataElement parameter.
