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

# value(forProperty:)

Returns the value of a given property for a record.

## Declaration

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

## Parameters

- `property`: The property whose value will be returned.

## Return Value

Return Value The value of the given property.

## Discussion

Discussion The type of the value depends on the property type (see Property Types for a list of possible property types). Note that the returned value is always of an immutable type (for example, an NSString type, not an NSMutableString type, is returned). If property is nil, this method raises an exception. If property is invalid, this method returns nil. For a list of the available properties, see Accessing Address Book Records in Address Book Programming Guide for Mac.

## See Also

### Retrieving and Setting Values

- [removeValue(forProperty:)](addressbook/abrecord/removevalue(forproperty:).md)
- [setValue(_:forProperty:)](addressbook/abrecord/setvalue(_:forproperty:).md)
- [setValue(_:forProperty:error:)](addressbook/abrecord/setvalue(_:forproperty:error:).md)
