---
title: "ABRecordCopyValue(_:_:)"
framework: addressbook
role: symbol
role_heading: Function
path: "addressbook/abrecordcopyvalue(_:_:)"
---

# ABRecordCopyValue(_:_:)

Returns the value of the given property.

## Declaration

```swift
func ABRecordCopyValue(_ record: ABRecord!, _ property: ABPropertyID) -> Unmanaged<CFTypeRef>!
```

```swift
func ABRecordCopyValue(_ record: ABRecordRef!, _ property: CFString!) -> Unmanaged<CFTypeRef>!
```

## Parameters

- `record`: The record whose value you wish to obtain.
- `property`: The property name in record whose value you wish to obtain. May be a pre-defined or program-defined property. See Common Properties for a list of properties all records have, and specific ABRecord derived opaque types for any additional properties.

## Return Value

Return Value The value for property in record.The type of the returned value depends on the property type (see PropertyTypes for a list of possible property types). You are responsiblefor releasing this object.

## Discussion

Discussion If the value for property is invalid, this function returns NULL.

## See Also

### Records

- [ABAddRecord(_:_:)](addressbook/abaddrecord(_:_:).md)
- [ABCopyRecordForUniqueId(_:_:)](addressbook/abcopyrecordforuniqueid(_:_:).md)
- [ABCopyRecordTypeFromUniqueId(_:_:)](addressbook/abcopyrecordtypefromuniqueid(_:_:).md)
- [ABCreateFormattedAddressFromDictionary(_:_:)](addressbook/abcreateformattedaddressfromdictionary(_:_:).md)
- [ABRecordCopyRecordType(_:)](addressbook/abrecordcopyrecordtype(_:).md)
- [ABRecordCopyUniqueId(_:)](addressbook/abrecordcopyuniqueid(_:).md)
- [ABRecordCreateCopy(_:)](addressbook/abrecordcreatecopy(_:).md)
- [ABRecordIsReadOnly(_:)](addressbook/abrecordisreadonly(_:).md)
- [ABRecordRemoveValue(_:_:_:)](addressbook/abrecordremovevalue(_:_:).md)
- [ABRecordSetValue(_:_:_:_:)](addressbook/abrecordsetvalue(_:_:_:).md)
- [ABRemoveRecord(_:_:)](addressbook/abremoverecord(_:_:).md)
