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

# ABMultiValueCopyPrimaryIdentifier(_:)

Returns the identifier for the primary value.

```
func ABMultiValueCopyPrimaryIdentifier(_ multiValue: ABMultiValueRef!) -> Unmanaged<CFString>!
```

## Parameters

`multiValue`

The multi-value list that you wish to access.

## Return Value

The unique identifierfor the primary value. You are responsible for releasing this object.

## Discussion

Use the [`ABMultiValueCopyIdentifierAtIndex(_:_:)`](/documentation/AddressBook/ABMultiValueCopyIdentifierAtIndex(_:_:)) functionto get index for the returned identifier, and the [`ABMultiValueCopyValueAtIndex(_:_:)`](/documentation/AddressBook/ABMultiValueCopyValueAtIndex(_:_:))functionto get its value.

---

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)