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

# containsValue(_:)

Checks to see if the target data element’s value is the same as the value parameter or if it contains the value parameter.

## Declaration

```swift
func containsValue(_ cmpValue: NSObject!) -> Bool
```

## Parameters

- `cmpValue`: The value to compare with (and search for).

## Return Value

Return Value Returns TRUE if the target’s value either matches the given value or if it contains the given value.

## Discussion

Discussion This method works just like -containsDataElement: except that it is comparing the value objects directly.
