<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AddressBook",
  "identifier" : "/documentation/AddressBook/ABGroup/addPropertiesAndTypes(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Address Book",
      "AddressBook"
    ],
    "preciseIdentifier" : "c:objc(cs)ABGroup(cm)addPropertiesAndTypes:"
  },
  "title" : "addPropertiesAndTypes(_:)"
}
-->

# addPropertiesAndTypes(_:)

Adds the given properties to all records of this type in the Address Book database.

```
class func addPropertiesAndTypes(_ properties: [AnyHashable : Any]!) -> Int
```

## Parameters

`properties`

A dictionary of properties to be added and their types.

## Return Value

The number of properties successfully added.

## Discussion

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.groupID`. The property type must be one of the constants described in [Property Types](/documentation/AddressBook/property_types).

---

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)