MonobjcMonobjc Documented Class Library
SetValueForKey Method (value, key)
NamespacesMonobjc.FoundationNSObjectSetValueForKey(String, String)

Sets the property of the receiver specified by a given key to a given value.

Original signature is '- (void)setValue:(id)value forKey:(NSString *)key'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public void SetValueForKey(
	string value,
	string key
)
Public Sub SetValueForKey ( _
	value As String, _
	key As String _
)
public:
void SetValueForKey(
	String^ value, 
	String^ key
)
Parameters
value (String)
The value for the property identified by key.
key (String)
The name of one of the receiver's properties.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)