MonobjcMonobjc Documented Class Library
SetIntegerForKey Method (value, defaultName)
NamespacesMonobjc.FoundationNSUserDefaultsSetIntegerForKey(NSInteger, NSString)

Sets the value of the specified default key to the specified integer value.

Original signature is '- (void)setInteger:(NSInteger)value forKey:(NSString *)defaultName'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void SetIntegerForKey(
	NSInteger value,
	NSString defaultName
)
Public Overridable Sub SetIntegerForKey ( _
	value As NSInteger, _
	defaultName As NSString _
)
public:
virtual void SetIntegerForKey(
	NSInteger value, 
	NSString^ defaultName
)
Parameters
value (NSInteger)
The integer value to store in the defaults database.
defaultName (NSString)
The key with which to associate with the value.
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)