8 private static ConfigurationPropertyCollection _properties;
10 private static readonly ConfigurationProperty _propName;
12 private static readonly ConfigurationProperty _propSerializeAs;
14 private static readonly ConfigurationProperty _propValue;
18 internal string Key =>
Name;
20 protected internal override ConfigurationPropertyCollection Properties
30 [ConfigurationProperty(
"name", IsRequired =
true, IsKey =
true, DefaultValue =
"")]
35 return (
string)base[_propName];
39 base[_propName] = value;
45 [ConfigurationProperty(
"serializeAs", IsRequired =
true, DefaultValue =
SettingsSerializeAs.String)]
54 base[_propSerializeAs] = value;
60 [ConfigurationProperty(
"value", IsRequired =
true, DefaultValue =
null)]
69 base[_propValue] = value;
75 _propName =
new ConfigurationProperty(
"name", typeof(
string),
"", ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey);
77 _propValue =
new ConfigurationProperty(
"value", typeof(
SettingValueElement),
null, ConfigurationPropertyOptions.IsRequired);
79 _properties =
new ConfigurationPropertyCollection();
80 _properties.Add(_propName);
81 _properties.Add(_propSerializeAs);
82 _properties.Add(_propValue);
104 public override bool Equals(
object settings)
107 if (settingElement !=
null && base.
Equals(settings))
Represents an XML document. You can use this class to load, validate, edit, add, and position XML in ...
string Name
Gets or sets the name of the T:System.Configuration.SettingElement object.
SettingValueElement Value
Gets or sets the value of a T:System.Configuration.SettingElement object by using a T:System....
SettingElement()
Initializes a new instance of the T:System.Configuration.SettingElement class.
override int GetHashCode()
Gets a unique value representing the T:System.Configuration.SettingElement current instance.
Contains the XML representing the serialized value of the setting. This class cannot be inherited.
SettingsSerializeAs SerializeAs
Gets or sets the serialization mechanism used to persist the values of the T:System....
override int GetHashCode()
Gets a unique value representing the T:System.Configuration.SettingValueElement current instance.
Represents a simplified configuration element used for updating elements in the configuration....
SettingsSerializeAs
Determines the serialization scheme used to store application settings.
SettingElement(string name, SettingsSerializeAs serializeAs)
Initializes a new instance of the T:System.Configuration.SettingElement class based on supplied param...
override bool Equals(object settings)
Compares the current T:System.Configuration.SettingElement instance to the specified object.