Function

ABRecordCopyValue

Returns the value of the given property.

Declaration

iOS
CFTypeRef ABRecordCopyValue(ABRecordRef record, ABPropertyID property);
macOS
CFTypeRef ABRecordCopyValue(ABRecordRef record, CFStringRef property);

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

The value for property in record. The type of the returned value depends on the property type (see Property Types for a list of possible property types). You are responsible for releasing this object.

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

See Also

Records

ABAddRecord

Adds a record of the specified type to the Address Book database.

ABCopyRecordForUniqueId

Returns the record that matches the given unique ID.

ABCopyRecordTypeFromUniqueId

Returns the type name of the record that matches a given unique ID.

ABCreateFormattedAddressFromDictionary

Returns a string containing the formatted address.

ABRecordCopyRecordType

Returns the type of the given record.

ABRecordCopyUniqueId

Returns the unique ID of the receiver.

ABRecordCreateCopy

Returns a copy of the given record.

ABRecordIsReadOnly

Returns whether or not the record is read-only.

ABRecordRemoveValue

Removes the value of the given property.

ABRecordSetValue

Sets the value of a given property for a record.

ABRemoveRecord

Removes the specified record from the Address Book database.