---
title: getContent
framework: kernel
role: pseudoSymbol
path: kernel/iomedia/1813495-getcontent
---

# getContent

## Declaration

```occ
virtual const char * getContent() const; 
```

## Return Value

Return Value Description of media's contents.

## Overview

Overview Ask the media object for a description of its contents. The description is the same as the hint at the time of the object's creation, but it is possible that the description has been overridden by a client (which has probed the media and identified the content correctly) of the media object. It is more accurate than the hint for this reason. The string is formed in the likeness of Apple's "Apple_HFS" strings or in the likeness of a UUID. The content description can be overridden by any client that matches onto this media object with a match category of kIOStorageCategory. The media object checks for a kIOMediaContentMaskKey property in the client, and if it finds one, it copies it into kIOMediaContentKey property.

## See Also

### Miscellaneous

- [copyPhysicalExtent](kernel/iomedia/1813424-copyphysicalextent.md)
- [getAttributes](kernel/iomedia/1813444-getattributes.md)
- [getBase](kernel/iomedia/1813468-getbase.md)
- [getContentHint](kernel/iomedia/1813522-getcontenthint.md)
- [getPreferredBlockSize](kernel/iomedia/1813553-getpreferredblocksize.md)
- [getSize](kernel/iomedia/1813585-getsize.md)
- [handleClose](kernel/iomedia/1813614-handleclose.md)
- [handleIsOpen](kernel/iomedia/1813630-handleisopen.md)
- [handleOpen](kernel/iomedia/1813647-handleopen.md)
- [init](kernel/iomedia/1813657-init.md)
- [isEjectable](kernel/iomedia/1813664-isejectable.md)
- [isFormatted](kernel/iomedia/1813670-isformatted.md)
- [isWhole](kernel/iomedia/1813677-iswhole.md)
- [isWritable](kernel/iomedia/1813683-iswritable.md)
- [lockPhysicalExtents](kernel/iomedia/1813689-lockphysicalextents.md)
- [read](kernel/iomedia/1813696-read.md)
- [synchronizeCache](kernel/iomedia/1813702-synchronizecache.md)
- [unlockPhysicalExtents](kernel/iomedia/1813710-unlockphysicalextents.md)
- [unmap](kernel/iomedia/1813719-unmap.md)
- [write](kernel/iomedia/1813725-write.md)
