<PackageReference Include="Relativity.Server.Import.SDK" Version="2.9.2" />

AppSettingsManager

static class AppSettingsManager
Defines static methods to manage application settings.
public static Dictionary<string, AppSettingAttribute> AppSettingAttributes { get; }

Gets the application setting attributes dictionary.

public static string RegistrySubKeyName { get; set; }

Gets or sets the Registry sub-key name.

public static void Copy(IAppSettings source, IDictionary target)

Copies all settings from the source settings object to the target dictionary.

public static IAppSettings Create(bool refresh)

Creates a new application settings object and either defaults or refreshes all values.

public static void Default(IAppSettings settings)

Defaults all application settings.

Gets the properties.

public static string GetPropertyKey(PropertyInfo info)

Gets the settings from the property.

public static RegistryKey GetRegistryKey(bool write)

Gets the registry key.

public static string GetRegistryKeyValue(string keyName)

Gets the registry key value.

public static string GetSectionKey(AppSettingAttribute setting)

Gets the section key associated with the setting attribute.

public static string GetSectionKey(string section)

Gets the section key from the section name.

public static string GetSectionNameValuePairKey(AppSettingAttribute setting)

Gets the section name value pair key name associated with the setting attribute.

public static void Refresh(IAppSettings settings)

Reads the settings and refreshes all values.

public static void SetDynamicValue(IAppSettings settings, string keyName, string value)

Dynamically maps keyName to a property contained within settings and update the value.

public static void SetRegistryKeyValue(string keyName, string value)

Sets the registry key value.