Contents

ABRecordSetValue(_:_:_:_:)

Sets the value of a given property for a record.

Declaration

func ABRecordSetValue(_ record: ABRecord!, _ property: ABPropertyID, _ value: CFTypeRef!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool
func ABRecordSetValue(_ record: ABRecordRef!, _ property: CFString!, _ value: CFTypeRef!) -> Bool

Parameters

  • 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 Properties for a list of properties all records have, and specific ABRecord derived opaque types for any additional properties. If NULL, this function raises an exception.

  • value:

    The new value for property in record. If NULL or 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.

See Also

Records