---
title: "value(forProperty:)"
framework: ituneslibrary
role: symbol
role_heading: Instance Method
path: "ituneslibrary/itlibmediaentity/value(forproperty:)"
---

# value(forProperty:)

Gets the value for a specified media property key.

## Declaration

```swift
func value(forProperty property: String) -> Any?
```

## Parameters

- `property`: The media property to retrieve the value from. Takes Media Item Properties and Playlist Properties from doc://com.apple.ituneslibrary/documentation/iTunesLibrary/ITLibMediaItem.

## Return Value

Return Value The value of the specified media property key.

## See Also

### Getting Media Item Properties

- [enumerateValues(forProperties:using:)](ituneslibrary/itlibmediaentity/enumeratevalues(forproperties:using:).md)
- [enumerateValuesExcept(forProperties:using:)](ituneslibrary/itlibmediaentity/enumeratevaluesexcept(forproperties:using:).md)
