---
title: "MDItemCopyAttributeNames(_:)"
framework: coreservices
role: symbol
role_heading: Function
path: coreservices/1427066-mditemcopyattributenames
---

# MDItemCopyAttributeNames(_:)

Returns an array containing the attribute names existing in the metadata item.

## Declaration

```swift
func MDItemCopyAttributeNames(_ item: MDItem!) -> CFArray!
```

## Parameters

- `item`: The item to be queried.

## Return Value

Return Value A CFArray of CFString attribute names, or NULL on failure.

## See Also

### Retrieving Metadata Attributes 

- [MDItemCopyAttribute(_:_:)](coreservices/1427080-mditemcopyattribute.md)
- [MDItemCopyAttributes(_:_:)](coreservices/1426980-mditemcopyattributes.md)
