---
title: "MDQueryCopyValueListAttributes(_:)"
framework: coreservices
role: symbol
role_heading: Function
path: coreservices/1413071-mdquerycopyvaluelistattributes
---

# MDQueryCopyValueListAttributes(_:)

Returns the list of attribute names for which values are being collected by the query.

## Declaration

```swift
func MDQueryCopyValueListAttributes(_ query: MDQuery!) -> CFArray!
```

## Parameters

- `query`: The query.

## Return Value

Return Value A CFArrayRef containing the attribute names of the collected values.

## See Also

### Getting and Setting Query Parameters

- [MDQuerySetMaxCount(_:_:)](coreservices/1413085-mdquerysetmaxcount.md)
- [MDQueryGetBatchingParameters(_:)](coreservices/1413006-mdquerygetbatchingparameters.md)
- [MDQuerySetBatchingParameters(_:_:)](coreservices/1413103-mdquerysetbatchingparameters.md)
- [MDQueryCopySortingAttributes(_:)](coreservices/1413059-mdquerycopysortingattributes.md)
- [MDQueryCopyQueryString(_:)](coreservices/1413004-mdquerycopyquerystring.md)
