MonobjcMonobjc Documented Class Library
SetValueForKey Method (value, key)
NamespacesMonobjc.FoundationNSObjectSetValueForKey(Int16, 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(
	short value,
	string key
Public Sub SetValueForKey ( _
	value As Short, _
	key As String _
void SetValueForKey(
	short value, 
	String^ key
value (Int16)
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)