---
title: "addPropertiesAndTypes(_:)"
framework: addressbook
role: symbol
role_heading: Type Method
path: "addressbook/abgroup/addpropertiesandtypes(_:)"
---

# addPropertiesAndTypes(_:)

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

## Declaration

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

## Parameters

- `properties`: A dictionary of properties to be added and their types.

## Return Value

Return Value The number of properties successfully added.

## Discussion

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.

## See Also

### Managing properties

- [removeProperties(_:)](addressbook/abgroup/removeproperties(_:).md)
- [properties()](addressbook/abgroup/properties().md)
- [type(ofProperty:)](addressbook/abgroup/type(ofproperty:).md)
