<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSDiffableDataSourceSnapshotReference/itemIdentifiersInSection(withIdentifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSDiffableDataSourceSnapshot(im)itemIdentifiersInSectionWithIdentifier:"
  },
  "title" : "itemIdentifiersInSection(withIdentifier:)"
}
-->

# itemIdentifiersInSection(withIdentifier:)

Returns the identifiers of all of the items in the specified section of the snapshot.

```
func itemIdentifiersInSection(withIdentifier sectionIdentifier: Any) -> [Any]
```

## Parameters

`sectionIdentifier`

The identifier of the section of the snapshot.

## Return Value

An array of identifiers of the items contained in the section.

---

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)