---
title: containsObject
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/osset/containsobject
---

# containsObject

## Declaration

```occ
bool containsObject(const OSMetaClassBase *anObject) const;
```

## Parameters

- `anObject`: The OSMetaClassBase-derived object to check for in the set.

## Return Value

Return Value If anObject is non-NULL and present within the set, false otherwise.

## Discussion

Discussion Checks the set for the presence of an object. Checks the set for the presence of an object.
