Edit

Share via


NSUserDefaults.BoolForKey(String) Method

Definition

The bool value for the specified key.

[Foundation.Export("boolForKey:")]
public virtual bool BoolForKey (string defaultName);
abstract member BoolForKey : string -> bool
override this.BoolForKey : string -> bool

Parameters

defaultName
String

The key name used to lookup the stored value.

Returns

The boolean that was stored with the specific key, or false if the stored value is not a boolean or is not present.

Attributes

Remarks

Applies to