[This is preliminary documentation and is subject to change.]
Attempts to set a value for the given key path of an object by
recursively calling valueForKey until the end of the path or null
is encountered, then calls setValueForKey on the final object with the final key.
See setValueForKey for more information. Equivalent to Cocoa's
-setValueForKeyPath:.
Namespace:
KNKVCAssembly: KNKVC (in KNKVC.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public static void setValueForKeyPath( this Object o, Object value, string keyPath ) |
| Visual Basic (Declaration) |
|---|
<ExtensionAttribute> _ Public Shared Sub setValueForKeyPath ( _ o As Object, _ value As Object, _ keyPath As String _ ) |
| Visual C++ |
|---|
[ExtensionAttribute] public: static void setValueForKeyPath( Object^ o, Object^ value, String^ keyPath ) |
Parameters
- o
- Type: System..::.Object
The base object.
- value
- Type: System..::.Object
The value to set.
- keyPath
- Type: System..::.String
The key path of the property to set, in the form key.key.property.