Function

ODRecordCopyDetails(_:_:_:)

Returns the values of a record’s attributes.

Declaration

func ODRecordCopyDetails(_ record: ODRecordRef!, _ attributes: CFArray!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Unmanaged<CFDictionary>!

Parameters

inRecord

The record.

inAttributes

An array of attributes to return values for. Elements are of type CFStringRef or ODAttributeType. If NULL, all currently fetched values are returned.

outError

An error reference for error details. Can be NULL.

Return Value

The attribute values of the record.

Discussion

The returned values are of type CFString or CFData, depending on the type of attribute. If inAttributes is not NULL and a requested attribute has not been fetched before, it is fetched in order to return its value.

See Also

Working with Records

func ODRecordGetTypeID() -> CFTypeID

Returns the type ID for a record.

func ODRecordSynchronize(ODRecordRef!, UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool

Synchronizes a record with the directory to get current data and commit changes.