---
title: "MDSchemaCopyAttributesForContentType(_:)"
framework: coreservices
role: symbol
role_heading: Function
path: coreservices/1444459-mdschemacopyattributesforcontent
---

# MDSchemaCopyAttributesForContentType(_:)

Returns a dictionary containing the metadata attributesfor the specified UTI type.

## Declaration

```swift
func MDSchemaCopyAttributesForContentType(_ contentTypeUTI: CFString!) -> CFDictionary!
```

## Parameters

- `utiType`: The UTI type.

## Return Value

Return Value A dictionary containing kMDAttributeDisplayValues and kMDAttributeAllValues keys.Returns NULL if the UTItype is unknown.

## Discussion

Discussion This function returns the metadata attributes for the specifiedUTI type only.

## See Also

### MDSchema Miscellaneous Functions

- [MDSchemaCopyAllAttributes()](coreservices/1445665-mdschemacopyallattributes.md)
- [MDSchemaCopyDisplayDescriptionForAttribute(_:)](coreservices/1442582-mdschemacopydisplaydescriptionfo.md)
- [MDSchemaCopyDisplayNameForAttribute(_:)](coreservices/1450203-mdschemacopydisplaynameforattrib.md)
- [MDSchemaCopyMetaAttributesForAttribute(_:)](coreservices/1450052-mdschemacopymetaattributesforatt.md)
