// -------------------------------------------------------------------------------------------------------------------- // // Copyright (c) James South. // Licensed under the Apache License, Version 2.0. // // // Represents a SettingElement configuration element within the configuration. // // -------------------------------------------------------------------------------------------------------------------- namespace ImageProcessor.Web.Configuration { using System.Configuration; /// /// Represents a SettingElement configuration element within the configuration. /// public class SettingElement : ConfigurationElement { /// /// Gets or sets the key of the plugin setting. /// /// The key of the plugin setting. [ConfigurationProperty("key", IsRequired = true, IsKey = true)] public string Key { get { return this["key"] as string; } set { this["key"] = value; } } /// /// Gets or sets the value of the plugin setting. /// /// The value of the plugin setting. [ConfigurationProperty("value", IsRequired = true)] public string Value { get { return (string)this["value"]; } set { this["value"] = value; } } } }