Search Results for

    Show / Hide Table of Contents

    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

    Extension Methods

    UtilityExtensions.DeepClone<T>(T)
    UtilityExtensions.IsMethodImplemented(Object, String)
    UtilityExtensions.LogError(Object, String)
    UtilityExtensions.ShowAndLogError(Object)
    UtilityExtensions.ShowAndLogError(Object, Window)
    UtilityExtensions.ShowAndLogError(Object, String, Window, String, String)
    UtilityExtensions.GetConnectionDetails(PreferenceService)
    UtilityExtensions.GetConnectionSettings(PreferenceService)
    UtilityExtensions.GetConnectionsInfo(PreferenceService)
    UtilityExtensions.GetJsonValue<T>(Object, String, Boolean)
    UtilityExtensions.ToAssetInfo(Object, Nullable<Boolean>)
    In This Article
    Back to top © 2022 Quark Software Inc. All rights reserved.