Function

ABCopyRecordForUniqueId

Returns the record that matches the given unique ID.

Declaration

ABRecordRef ABCopyRecordForUniqueId(ABAddressBookRef addressBook, CFStringRef uniqueId);

Parameters

addressBook

The address book for the logged-in user.

uniqueId

A unique ID for the record. If this is NULL, this function raises an exception.

Return Value

The record that matches the given unique ID. If no record matches uniqueId, the function returns NULL. You are responsible for releasing this object.

See Also

Records

ABAddRecord

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

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.

ABRecordCopyValue

Returns the value of the given property.

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.