<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AddressBook",
  "identifier" : "/documentation/AddressBook/ABAddPropertiesAndTypes(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Address Book"
    ],
    "preciseIdentifier" : "c:@F@ABAddPropertiesAndTypes"
  },
  "title" : "ABAddPropertiesAndTypes(_:_:_:)"
}
-->

# ABAddPropertiesAndTypes(_:_:_:)

Adds the given properties to all the records of the specified type in the Address Book database, and returns the number of properties successfully added.

```
func ABAddPropertiesAndTypes(_ addressBook: ABAddressBookRef!, _ recordType: CFString!, _ propertiesAndTypes: CFDictionary!) -> CFIndex
```

## Parameters

`addressBook`

The address book for the logged-in user.

`recordType`

The record type you wish to add properties to: kABGroupRecordType or kABPersonRecordType.

`propertiesAndTypes`

A CFDictionary object containing the properties to add. In each dictionary entry, the key is a string with the property’s name, and the value is a constant with the property’s type. The property’s name must be unique. You may want to use Java-style package names for your properties, for example, `"org.dogclub.dogname"` or `"com.mycompany.customerID"`. The property type must be one of the constants described in [`ABPropertyType`](/documentation/AddressBook/ABPropertyType).

## Return Value

The number of properties successfully added.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)