Function

ODRecordCopyValues(_:_:_:)

Returns the value of a single attribute of a record.

Declaration

func ODRecordCopyValues(_ record: ODRecordRef!, _ attribute: String!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Unmanaged<CFArray>!

Parameters

inRecord

The record.

inAttribute

The attribute.

outError

An error reference for error details. Can be NULL.

Return Value

The value of the requested attribute, or NULL if the attribute doesn’t exist.

Discussion

If the requested attribute has not been fetched before, it is fetched in order to return its value. If the record has been fetched before, internal storage is consulted instead of the directory.

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.