Skip to main content
The SetPreference method has four overloads depending on the value passed (string, int, bool, or DateTime). The SoPreference class provides four corresponding methods to retrieve the current value of a given preference.
The example above retrieves whether the calendar for the signed-in user begins with Sunday or Monday. In this case, since GetBool() requires 3 parameters, the default value of the key should also be passed in. The default value parameter should be passed in only when using the GetBool method. See also: intro to cache