value(forKey:)
Returns the arbitrary keyed-data specified by the given key.
Declaration
class func value(forKey key: String) -> Any?Parameters
- key:
The name of one of the receiver’s properties.
Return Value
The value for the data specified by the key.
Discussion
Nested transactions have nested data scope. Requesting a value for a key first searches the innermost scope, then the enclosing transactions.