1 write to Values
System.Configuration.ConfigurationManager (1)
System\Configuration\ConfigurationElement.cs (1)
64
Values
= new ConfigurationValues();
63 references to Values
System.Configuration.ConfigurationManager (63)
System\Configuration\ConfigurationElement.cs (51)
118
object o =
Values
[prop.Name];
123
lock (
Values
.SyncRoot)
125
o =
Values
[prop.Name];
145
Values
.SetValue(prop.Name, childElement, ConfigurationValueFlags.Inherited, null);
386
Values
.SetValue(propInfo.Name, propInfo.Value, flags,
409
Values
.AssociateContext(configRecord);
422
foreach (ConfigurationElement elem in
Values
.ConfigurationElements)
435
foreach (ConfigurationElement elem in
Values
.ConfigurationElements)
447
foreach (ConfigurationElement elem in
Values
.ConfigurationElements) elem.SetReadOnly();
496
foreach (InvalidPropValue invalidValue in
Values
.InvalidValues) errorList.Add(invalidValue.Error);
498
foreach (ConfigurationElement elem in
Values
.ConfigurationElements)
606
Values
.Clear();
617
for (int index = 0; index < parentElement.
Values
.Count; index++)
619
string key = parentElement.
Values
.GetKey(index);
620
ConfigurationValue configValue = parentElement.
Values
.GetConfigValue(index);
642
Values
.SetValue(key, value, flags, sourceInfo);
648
Values
.SetValue(key, value, flags, sourceInfo);
655
for (int index = 0; index < parentElement.
Values
.Count; index++)
657
string key = parentElement.
Values
.GetKey(index);
658
object value = parentElement.
Values
[index];
683
object thisValue =
Values
[configProperty.Name];
684
object otherValue = otherElement.
Values
[configProperty.Name];
816
foreach (ConfigurationElement elem in root.
Values
.ConfigurationElements) ApplyValidatorsRecursive(elem);
845
Values
[prop.Name] = value ?? s_nullPropertyValue;
850
return
Values
.GetSourceInfo(propertyName);
916
for (int index = 0; index < sourceElement.
Values
.Count; index++)
918
string key = sourceElement.
Values
.GetKey(index);
919
object value = sourceElement.
Values
[index];
932
ConfigurationValueFlags valueFlags = sourceElement.
Values
.RetrieveFlags(key);
933
Values
.SetValue(key, value, valueFlags, null);
945
object value = sourceElement.
Values
[prop.Name];
962
object value2 = parentElement?.
Values
[prop.Name] ?? prop.DefaultValue;
969
Values
[prop.Name] = value;
972
bool modified = sourceElement.
Values
.IsModified(prop.Name);
973
bool inherited = sourceElement.
Values
.IsInherited(prop.Name);
980
Values
[prop.Name] = value;
984
Values
[prop.Name] = value2;
986
Values
[prop.Name] = value;
1048
for (int index = 0; index <
Values
.Count; index++)
1050
string key =
Values
.GetKey(index);
1051
object value =
Values
[index];
1130
for (int index = 0; index <
Values
.Count; index++)
1132
string key =
Values
.GetKey(index);
1133
object value =
Values
[index];
1402
Values
.SetValue(reader.Name, null, ConfigurationValueFlags.Modified, rootInfo);
1403
Values
.SetValue(DefaultCollectionPropertyName, defaultCollection, ConfigurationValueFlags.Modified,
1443
Values
.SetValue(propertyName,
1798
for (int index = 0; index < elem.
Values
.Count; index++)
1800
ConfigurationElement value = elem.
Values
[index] as ConfigurationElement;
1820
if (prop.IsRequired && !
Values
.Contains(prop.Name))
1823
if (!ensureKeysOnly || prop.IsKey)
Values
[prop.Name] = OnRequiredPropertyNotFound(prop.Name);
System\Configuration\ElementInformation.cs (3)
44
public string Source => _thisElement.
Values
.GetSourceInfo(_thisElement.ElementTagName)?.FileName;
49
public int LineNumber => _thisElement.
Values
.GetSourceInfo(_thisElement.ElementTagName)?.LineNumber ?? 0;
65
_thisElement.
Values
.ChangeSourceInfo(_thisElement.ElementTagName, sourceInformation);
System\Configuration\PropertyInformation.cs (8)
42
if (_thisElement.
Values
[Name] == null) return PropertyValueOrigin.Default;
43
return _thisElement.
Values
.IsInherited(Name) ? PropertyValueOrigin.Inherited : PropertyValueOrigin.SetHere;
47
public bool IsModified => _thisElement.
Values
[Name] != null && _thisElement.
Values
.IsModified(Name);
67
PropertySourceInfo psi = _thisElement.
Values
.GetSourceInfo(Name) ??
68
_thisElement.
Values
.GetSourceInfo(string.Empty);
80
PropertySourceInfo psi = _thisElement.
Values
.GetSourceInfo(Name) ??
81
_thisElement.
Values
.GetSourceInfo(string.Empty);
System\Configuration\ProviderSettings.cs (1)
118
if ((
Values
.GetConfigValue(prop.Name).ValueFlags & ConfigurationValueFlags.Locked) != 0)