Class PreferenceService
Defines the Configuration service implementation.
Inheritance
System.Object
PreferenceService
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Quark.CMSAdapters.Core
Assembly: Quark.CMSAdapters.Core.dll
Syntax
public class PreferenceService
Methods
GetInstance()
Gets the instance.
Declaration
public static PreferenceService GetInstance()
Returns
Type | Description |
---|---|
PreferenceService |
GetPreference(String)
Gets the preference.
Declaration
public object GetPreference(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
Returns
Type | Description |
---|---|
System.Object |
SavePreferences()
Saves the preferences.
Declaration
public void SavePreferences()
SetPreference(String, Object)
Sets the preference.
Declaration
public void SetPreference(string key, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
System.Object | value | The value. |
ShowPreferences(String)
Shows the preferences.
Declaration
public bool ShowPreferences(string key = "")
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
Returns
Type | Description |
---|---|
System.Boolean |