---
title: "sectionIdentifier(forRow:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstableviewdiffabledatasourcereference/sectionidentifier(forrow:)"
---

# sectionIdentifier(forRow:)

Returns the identifier of the section containing the specified row in the snapshot.

## Declaration

```swift
func sectionIdentifier(forRow row: Int) -> SectionIdentifierType?
```

## Parameters

- `row`: The row of the section in the table view.

## Return Value

Return Value The section’s identifier, or nil if the method doesn’t find an item with the provided item identifier.

## See Also

### Identifying Items and Sections

- [itemIdentifier(forRow:)](appkit/nstableviewdiffabledatasourcereference/itemidentifier(forrow:).md)
- [row(forItemIdentifier:)](appkit/nstableviewdiffabledatasourcereference/row(foritemidentifier:).md)
- [row(forSectionIdentifier:)](appkit/nstableviewdiffabledatasourcereference/row(forsectionidentifier:).md)
