ABRecordSetValue(_:_:_:_:)
Sets the value of a given property for a record.
Declaration
func ABRecordSetValue(_ record: ABRecord!, _ property: ABPropertyID, _ value: CFTypeRef!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Boolfunc ABRecordSetValue(_ record: ABRecordRef!, _ property: CFString!, _ value: CFTypeRef!) -> BoolParameters
- record:
The record you wish to modify.
- property:
The property whose value you wish to set. May be a pre-defined or program-defined property. See
Common Propertiesfor a list of properties all records have, and specific ABRecord derived opaque types for any additional properties. IfNULL, this function raises an exception. - value:
The new value for
propertyinrecord. IfNULLor not the correct type, this function raises an exception.
Return Value
If property isa multi-value list property, this method checks to see if the valuesin the multi-value list are the same type. If the multi-value list containsmixed types, this method returns false.Returns true if successful, false otherwise.