1 write to Name
System.Configuration.ConfigurationManager (1)
System\Configuration\ConfigurationProperty.cs (1)
243Name = name;
70 references to Name
System.Configuration.ConfigurationManager (70)
System\Configuration\ConfigurationElement.cs (43)
118object o = Values[prop.Name]; 125o = Values[prop.Name]; 145Values.SetValue(prop.Name, childElement, ConfigurationValueFlags.Inherited, null); 346if (!_lockedAllExceptElementsList.Contains(prop.Name) && 625if ((prop == null) || ((collectionKeys != null) && !collectionKeys.Contains(prop.Name))) continue; 683object thisValue = Values[configProperty.Name]; 684object otherValue = otherElement.Values[configProperty.Name]; 833!_lockedAllExceptAttributesList.DefinedInParent(prop.Name)) || 835(_lockedAttributesList.DefinedInParent(prop.Name) || _lockedAttributesList.DefinedInParent(LockAll))) || 838throw new ConfigurationErrorsException(SR.Format(SR.Config_base_attribute_locked, prop.Name)); 845Values[prop.Name] = value ?? s_nullPropertyValue; 921if ((prop == null) || ((collectionKeys != null) && !collectionKeys.Contains(prop.Name))) 941if ((prop == null) || ((collectionKeys != null) && !collectionKeys.Contains(prop.Name))) continue; 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; 1054if ((prop == null) || ((collectionKeys != null) && !collectionKeys.Contains(prop.Name))) continue; 1063!section.ShouldSerializePropertyInTargetVersion(prop, prop.Name, _configRecord.TargetFramework, 1076!_lockedAllExceptAttributesList.DefinedInParent(prop.Name)) || 1077((_lockedAttributesList != null) && _lockedAttributesList.DefinedInParent(prop.Name))) 1082SR.Config_base_required_attribute_locked, prop.Name)); 1106writer.WriteAttributeString(prop.Name, xmlValue); 1149if (prop.Name != ConfigurationProperty.DefaultCollectionPropertyName) 1151dataToWrite |= elem.SerializeToXmlElement(writer, prop.Name); 1171SR.Format(SR.Config_base_element_cannot_have_multiple_child_elements, prop.Name)); 1219if ((validProp.Name != LockAttributesKey) && 1220(validProp.Name != LockAllAttributesExceptKey) && 1221(validProp.Name != LockElementsKey) && 1222(validProp.Name != LockAllElementsExceptKey) 1233sb.Append(validProp.Name); 1244sb.Append(validProp.Name); 1353SR.Format(SR.Config_base_required_attribute_lock_attempt, propToLock.Name)); 1647if (!string.IsNullOrEmpty(prop.Name) && 1682if (!(string.IsNullOrEmpty(prop.Name) || _lockedAllExceptElementsList.Contains(prop.Name)) && 1820if (prop.IsRequired && !Values.Contains(prop.Name)) 1823if (!ensureKeysOnly || prop.IsKey) Values[prop.Name] = OnRequiredPropertyNotFound(prop.Name);
System\Configuration\ConfigurationLockCollection.cs (1)
163propToLock.Name));
System\Configuration\ConfigurationProperty.cs (7)
259throw new ConfigurationErrorsException(SR.Format(SR.Validator_does_not_support_prop_type, Name)); 281throw new ConfigurationErrorsException(SR.Format(SR.Default_value_wrong_type, Name)); 310Name, ex.Message)); 340throw new ConfigurationErrorsException(SR.Format(SR.Top_level_conversion_error_from_string, Name, 364SR.Format(SR.Top_level_conversion_error_to_string, Name, ex.Message)); 377SR.Format(SR.Top_level_validation_error, Name, ex.Message), ex); 405throw new ConfigurationErrorsException(SR.Format(SR.No_converter, Name, Type.Name));
System\Configuration\ConfigurationPropertyCollection.cs (4)
22if (cp.Name == name) return (ConfigurationProperty)_items[index]; 54if (cp.Name == name) return true; 61if (Contains(property.Name) != true) _items.Add(property); 69if (cp.Name != name) continue;
System\Configuration\PropertyInformationCollection.cs (3)
16if (prop.Name != thisElement1.ElementTagName) 17BaseAdd(prop.Name, new PropertyInformation(thisElement, prop.Name));
System\Configuration\ProviderSettings.cs (8)
74if ((prop.Name != "name") && (prop.Name != "type")) 75_propertyNameCollection.Add(prop.Name, (string)base[prop]); 113if ((prop.Name != "name") && (prop.Name != "type")) 115if (_propertyNameCollection.Get(prop.Name) != null) continue; 118if ((Values.GetConfigValue(prop.Name).ValueFlags & ConfigurationValueFlags.Locked) != 0) 120removeList.Add(prop.Name);
System\Diagnostics\ListenerElementsCollection.cs (4)
186if (_attributes != null || ElementInformation.Properties[s_propFilter.Name].ValueOrigin == PropertyValueOrigin.SetHere || TraceOutputOptions != TraceOptions.None || !string.IsNullOrEmpty(InitData)) 312if (_attributes != null || ElementInformation.Properties[s_propFilter.Name].ValueOrigin == PropertyValueOrigin.SetHere || TraceOutputOptions != TraceOptions.None || !string.IsNullOrEmpty(InitData)) 347if (ElementInformation.Properties[s_propFilter.Name].ValueOrigin == PropertyValueOrigin.SetHere || 348ElementInformation.Properties[s_propFilter.Name].ValueOrigin == PropertyValueOrigin.Inherited)