---
title: contentType
framework: fileprovider
role: symbol
role_heading: Instance Property
path: fileprovider/nsfileprovidersearchresult/contenttype
---

# contentType

The result file’s content type.

## Declaration

```swift
@NSCopying var contentType: UTType { get }
```

## See Also

### Accessing file metadata

- [creationDate](fileprovider/nsfileprovidersearchresult/creationdate.md)
- [contentModificationDate](fileprovider/nsfileprovidersearchresult/contentmodificationdate.md)
- [lastUsedDate](fileprovider/nsfileprovidersearchresult/lastuseddate.md)
- [documentSize](fileprovider/nsfileprovidersearchresult/documentsize.md)
