NSUserDefaults.SetBool(Boolean, 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.
Sets a bool at the specified key.
[Foundation.Export("setBool:forKey:")]
public virtual void SetBool (bool value, string defaultName);
abstract member SetBool : bool * string -> unit
override this.SetBool : bool * string -> unit
Parameters
- value
- Boolean
Boolean value to store.
- defaultName
- String
The key name used to store the value.
- Attributes