[This is preliminary documentation and is subject to change.]

Called when setValueForKey() can't find a Key-Value coding compliant setter 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 –setValue:forUndefinedKey:.

Namespace:  KNKVC
Assembly:  KNKVC (in KNKVC.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static void setValueForUndefinedKey(
	this Object o,
	Object value,
	string key
)
Visual Basic (Declaration)
<ExtensionAttribute> _
Public Shared Sub setValueForUndefinedKey ( _
	o As Object, _
	value As Object, _
	key As String _
)
Visual C++
[ExtensionAttribute]
public:
static void setValueForUndefinedKey(
	Object^ o, 
	Object^ value, 
	String^ key
)

Parameters

o
Type: System..::.Object

[Missing <param name="o"/> documentation for "M:KNKVC.KNKVCSettable.setValueForUndefinedKey(System.Object,System.Object,System.String)"]

value
Type: System..::.Object

[Missing <param name="value"/> documentation for "M:KNKVC.KNKVCSettable.setValueForUndefinedKey(System.Object,System.Object,System.String)"]

key
Type: System..::.String

[Missing <param name="key"/> documentation for "M:KNKVC.KNKVCSettable.setValueForUndefinedKey(System.Object,System.Object,System.String)"]

See Also