Instance Method インスタンスメソッド

value(forKeyPath:)

Returns the value for the derived property identified by a given key path.

Declaration 宣言

func value(forKeyPath keyPath: String) -> Any?

Parameters パラメータ

keyPath

A key path of the form relationship.property (with one or more relationships); for example “department.name” or “department.manager.lastName”.

Return Value 戻り値

The value for the derived property identified by keyPath.

Discussion 解説

The default implementation gets the destination object for each relationship using value(forKey:) and returns the result of a value(forKey:) message to the final object.

See Also 参照

Getting Values 値を取得する

Related Documentation 関連文書