Search Results for

    Show / Hide Table of Contents

    Class AppSettingsConnector

    Exposes a basic static API to access the AppSettings file in order to manage application settings.

    Inheritance
    Object
    AppSettingsConnector
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: BionicCode.Utilities.Net
    Assembly: BionicCode.Utilities.Net.Wpf.dll
    Syntax
    public static class AppSettingsConnector

    Methods

    | Improve this Doc View Source

    TryReadBool(String, out Boolean)

    If exists, this method will return the corresponding value of the specified key.

    Declaration
    public static bool TryReadBool(string key, out bool value)
    Parameters
    Type Name Description
    String key

    The key that maps to a specific setting.

    Boolean value

    The actual settings Boolean value of the specified key.

    Returns
    Type Description
    Boolean

    true when an entry for the specified key was found. Otherwise false.

    | Improve this Doc View Source

    TryReadDouble(String, out Double)

    If exists, this method will return the corresponding value of the specified key.

    Declaration
    public static bool TryReadDouble(string key, out double value)
    Parameters
    Type Name Description
    String key

    The key that maps to a specific setting.

    Double value

    The actual settings Double value of the specified key.

    Returns
    Type Description
    Boolean

    true when an entry for the specified key was found. Otherwise false.

    | Improve this Doc View Source

    TryReadInt(String, out Int32)

    If exists, this method will return the corresponding value of the specified key.

    Declaration
    public static bool TryReadInt(string key, out int value)
    Parameters
    Type Name Description
    String key

    The key that maps to a specific setting.

    Int32 value

    The actual settings Int32 value of the specified key.

    Returns
    Type Description
    Boolean

    true when an entry for the specified key was found. Otherwise false.

    | Improve this Doc View Source

    TryReadString(String, out String)

    If exists, this method will return the corresponding value of the specified key.

    Declaration
    public static bool TryReadString(string key, out string value)
    Parameters
    Type Name Description
    String key

    The key that maps to a specific setting.

    String value

    The actual settings String value of the specified key.

    Returns
    Type Description
    Boolean

    true when an entry for the specified key was found. Otherwise false.

    | Improve this Doc View Source

    WriteBool(String, Boolean)

    Writes a Boolean value to the settings file which is stored using the specified lookup key. If the key already exists, the existing value will be overwritten.

    Declaration
    public static void WriteBool(string key, bool value)
    Parameters
    Type Name Description
    String key

    The lookup key for the value.

    Boolean value

    The settings value to save to the file.

    | Improve this Doc View Source

    WriteDouble(String, Double)

    Writes a Double value to the settings file which is stored using the specified lookup key. If the key already exists, the existing value will be overwritten.

    Declaration
    public static void WriteDouble(string key, double value)
    Parameters
    Type Name Description
    String key

    The lookup key for the value.

    Double value

    The settings value to save to the file.

    | Improve this Doc View Source

    WriteInt(String, Int32)

    Writes a Int32 value to the settings file which is stored using the specified lookup key. If the key already exists, the existing value will be overwritten.

    Declaration
    public static void WriteInt(string key, int value)
    Parameters
    Type Name Description
    String key

    The lookup key for the value.

    Int32 value

    The settings value to save to the file.

    | Improve this Doc View Source

    WriteString(String, String)

    Writes a String value to the settings file which is stored using the specified lookup key. If the key already exists, the existing value will be overwritten.

    Declaration
    public static void WriteString(string key, string value)
    Parameters
    Type Name Description
    String key

    The lookup key for the value.

    String value

    The settings value to save to the file.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX