Instance Property

action

The ownership behavior for the records.

Declaration

var action: CKRecord_Reference_Action { get }

Discussion

The value in this property determines what action, if any, to take when the target of the reference object—that is, the object pointed to in the recordID property—is deleted. When this property is set to CKRecord_Reference_Action.deleteSelf, deleting the target object deletes any records that contain that reference in one of their fields. When this property is set to CKRecord_Reference_Action.none, deleting the target object does not delete any additional objects.

See Also

Getting the Reference Attributes

var recordID: CKRecord.ID

The ID of the referenced record.