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