Edit

Share via


NSObject.SetValueForKey(NSObject, NSString) Method

Definition

Sets the value of the property specified by the key to the specified value.

C#
[Foundation.Export("setValue:forKey:")]
public virtual void SetValueForKey (Foundation.NSObject value, Foundation.NSString key);

Parameters

value
NSObject

Value to set on the property.

key
NSString

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.

Attributes

Applies to

Product Versions
Xamarin iOS SDK 12