NSUserDefaults.BoolForKey(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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