Bearbeiten

Freigeben über


NSUserDefaults.SetBool(Boolean, String) Method

Definition

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

Remarks

Applies to