ODRecordSetValue(_:_:_:_:)
Sets one or more attribute values of a record.
Declaration
func ODRecordSetValue(_ record: ODRecordRef!, _ attribute: String!, _ valueOrValues: CFTypeRef!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> BoolParameters
- record:
The record.
- attribute:
The attribute type to set.
- valueOrValues:
The value or values. Can be of type
CFStringReforCFDataRef, or aCFArrayRefcontaining elements of typeCFStringRefandCFDataRef. - error:
An error reference for error details. Can be
NULL.
Return Value
true if the value or values are successfully set; otherwise, false.
Discussion
Passing an empty array for inValueOrValues deletes the attribute.
See Also
Related Documentation
Working with Records
ODRecordAddMember(_:_:_:)ODRecordAddValue(_:_:_:_:)ODRecordChangePassword(_:_:_:_:)ODRecordContainsMember(_:_:_:)ODRecordCopyDetails(_:_:_:)ODRecordCopyValues(_:_:_:)ODRecordDelete(_:_:)ODRecordGetRecordName(_:)ODRecordGetRecordType(_:)ODRecordGetTypeID()ODRecordRemoveMember(_:_:_:)ODRecordRemoveValue(_:_:_:_:)ODRecordSetNodeCredentials(_:_:_:_:)ODRecordSetNodeCredentialsExtended(_:_:_:_:_:_:_:)ODRecordSynchronize(_:_:)