MonoTouch.Foundation.NSObject.ValueForKey Method
Returns the value of the property associated with the specified key.

Syntax

[MonoTouch.Foundation.Export("valueForKey:")]
public virtual NSObject ValueForKey (NSString key)

Parameters

key
Name of the Objective-C property whose value you want to retrieve. It must be an ASCII name, start with a lowercase letter and contain no spaces.

Returns

An NSObject containing the value.

Remarks

c# Example

string GetName (NSObject myObject)
{
	return (string) myObject.ValueForKey ("name");
}

Requirements

Namespace: MonoTouch.Foundation
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0