Instance Method

setValue(_:forAttribute:)

Sets the values of an attribute of the record.

Declaration

func setValue(_ inValueOrValues: Any!, forAttribute inAttribute: String!) throws

Parameters

inValueOrValues

The value or values. Can be of type NSString or NSData, or an NSArray with elements of both types.

inAttribute

The attribute.

outError

An error reference for error details. Can be nil.

Return Value

true if the values are successfully set; otherwise, false.

Discussion

See Also

Managing Record Attributes

func addValue(Any!, toAttribute: String!)

Adds a value to an attribute of the record.

func recordDetails(forAttributes: [Any]!) -> [AnyHashable : Any]

Returns a dictionary of attributes with their respective values.

var recordName: String!

The official name of the record.

var recordType: String!

The record’s type.

func removeValues(forAttribute: String!)

Removes all values from an attribute of the record.

func removeValue(Any!, fromAttribute: String!)

Removes a value from an attribute of the record.

func synchronize()

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

func values(forAttribute: String!) -> [Any]

Returns the values of an attribute of the record.