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