<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Contacts",
  "identifier" : "/documentation/Contacts/CNContainerType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Contacts"
    ],
    "preciseIdentifier" : "c:@E@CNContainerType"
  },
  "title" : "CNContainerType"
}
-->

# CNContainerType

The container may be local on the device or associated with a server account that has contacts.

```
enum CNContainerType
```

## Topics

### Constants

[`CNContainerTypeLocal`](/documentation/Contacts/CNContainerType/local)

A container for contacts only stored locally on the device.

[`CNContainerTypeExchange`](/documentation/Contacts/CNContainerType/exchange)

A container for contacts stored in an Exchange folder from an Exchange server.

[`CNContainerTypeCardDAV`](/documentation/Contacts/CNContainerType/cardDAV)

A container for contacts stored in an CardDAV server, such as iCloud.

[`CNContainerTypeUnassigned`](/documentation/Contacts/CNContainerType/unassigned)

A container where the system hasn’t assigned the container type.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)