ABGroupCreateSearchElement(_:_:_:_:_:)
Creates an ABSearchElement object that specifies a queryfor ABGroup records.
Declaration
func ABGroupCreateSearchElement(_ property: CFString!, _ label: CFString!, _ key: CFString!, _ value: CFTypeRef!, _ comparison: ABSearchComparison) -> Unmanaged<ABSearchElementRef>!Parameters
- property:
The name of the property to search on. It cannot be
NULL. For a full list of the properties, seeGroup Propertiesand Common Properties. - label:
The label name for a multi-value list. If
propertydoes not have multiple values, passNULL. Ifpropertydoes have multiple values, passNULLto search all the values. By default, ABGroup records don’t contain any multi-value list properties. - key:
The key name for a dictionary. If
propertyis not a dictionary, passNULL. Ifpropertyis a dictionary, passNULLto search all keys. By default, ABGroup records don’t contain any properties that are dictionaries. - value:
The value you are searching for. It cannot be
NULL - comparison:
Specifies the type of comparison to perform, such as Kabequal or Kabprefixmatchcaseinsensitive. For a full list, see Absearchcomparison.
Return Value
A search element objectthat specifies a query according to the above parameters. You areresponsible for releasing this object.
Discussion
Use the ABAddressBook ABCopyArrayOfMatchingRecords(_:_:) functionto actually perform the query. Also, see ABSearchElement C formore functions that create compound queries.
See Also
Groups
ABCopyArrayOfAllGroups(_:)ABGroupAddGroup(_:_:)ABGroupAddMember(_:_:_:)ABGroupCopyArrayOfAllMembers(_:)ABGroupCopyArrayOfAllSubgroups(_:)ABGroupCopyDistributionIdentifier(_:_:_:)ABGroupCopyParentGroups(_:)ABGroupCreate()ABGroupRemoveGroup(_:_:)ABGroupRemoveMember(_:_:_:)ABGroupSetDistributionIdentifier(_:_:_:_:)