[This is preliminary documentation and is subject to change.]
Called when valueForKey() can't find a Key-Value Coding compliant method for the given
key. If you wish to define custom behaviour for your object's KVC compliance, it's recommended that
you override this method. The default implementation throws an exception. Equivalent to Cocoa's
valueForUndefinedKey:.
Namespace:
KNKVCAssembly: KNKVC (in KNKVC.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public static Object valueForUndefinedKey( this Object o, string key ) |
| Visual Basic (Declaration) |
|---|
<ExtensionAttribute> _ Public Shared Function valueForUndefinedKey ( _ o As Object, _ key As String _ ) As Object |
| Visual C++ |
|---|
[ExtensionAttribute] public: static Object^ valueForUndefinedKey( Object^ o, String^ key ) |
Parameters
- o
- Type: System..::.Object
The base object.
- key
- Type: System..::.String
The key that couldn't be found.
Return Value
[Missing <returns> documentation for "M:KNKVC.KNKVCGettable.valueForUndefinedKey(System.Object,System.String)"]