---
title: "ABRecordSetValue(_:_:_:_:)"
framework: addressbook
role: symbol
role_heading: Function
path: "addressbook/abrecordsetvalue(_:_:_:)"
---

# ABRecordSetValue(_:_:_:_:)

Sets the value of a given property for a record.

## Declaration

```swift
func ABRecordSetValue(_ record: ABRecord!, _ property: ABPropertyID, _ value: CFTypeRef!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool
```

```swift
func ABRecordSetValue(_ record: ABRecordRef!, _ property: CFString!, _ value: CFTypeRef!) -> Bool
```

## Parameters

- `record`: The record you wish to modify.
- `property`: The property whose value you wish to set. 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. If NULL, this function raises an exception.
- `value`: The new value for property in record. If NULL or not the correct type, this function raises an exception.

## Return Value

Return Value If property isa multi-value list property, this method checks to see if the valuesin the multi-value list are the same type. If the multi-value list containsmixed types, this method returns false.Returns true if successful, false otherwise.

## 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)
- [ABRecordCopyValue(_:_:)](addressbook/abrecordcopyvalue(_:_:).md)
- [ABRecordCreateCopy(_:)](addressbook/abrecordcreatecopy(_:).md)
- [ABRecordIsReadOnly(_:)](addressbook/abrecordisreadonly(_:).md)
- [ABRecordRemoveValue(_:_:_:)](addressbook/abrecordremovevalue(_:_:).md)
- [ABRemoveRecord(_:_:)](addressbook/abremoverecord(_:_:).md)
