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

Syntax

[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: Foundation
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0