---
title: "predicateForContainers(withIdentifiers:)"
framework: contacts
role: symbol
role_heading: Type Method
path: "contacts/cncontainer/predicateforcontainers(withidentifiers:)"
---

# predicateForContainers(withIdentifiers:)

Returns a predicate to find the containers with the specified identifiers.

## Declaration

```swift
class func predicateForContainers(withIdentifiers identifiers: [String]) -> NSPredicate
```

## Parameters

- `identifiers`: The container identifiers to be matched.

## Return Value

Return Value A predicate that can be used to fetch containers from CNContactStore.

## See Also

### Generating Search Predicates for Containers

- [predicateForContainerOfContact(withIdentifier:)](contacts/cncontainer/predicateforcontainerofcontact(withidentifier:).md)
- [predicateForContainerOfGroup(withIdentifier:)](contacts/cncontainer/predicateforcontainerofgroup(withidentifier:).md)
