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

# ABMultiValueSetPrimaryIdentifier(_:_:)

Sets the primary value to be the value for the given identifier.

```
func ABMultiValueSetPrimaryIdentifier(_ multiValue: ABMutableMultiValueRef!, _ identifier: CFString!) -> Bool
```

## Parameters

`multiValue`

The multi-value list you wish to modify.

`identifier`

The identifier corresponding to the value you wish to designate as the primary value for this multi-value list. Use the [`ABMultiValueCopyIdentifierAtIndex(_:_:)`](/documentation/AddressBook/ABMultiValueCopyIdentifierAtIndex(_:_:)) function to get the identifier given the index. If `identifier` is `NULL`, this function raises an exception.

## Return Value

`true` ifsuccessfully, `false` otherwise.

---

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)