107 references to Name
System.Configuration (65)
System\Configuration\ConfigurationElement.cs (49)
233
if ((!_lockedAllExceptElementsList.Contains(prop.
Name
)) &&
584
if (prop == null || ((collectionKeys != null) && !collectionKeys.Contains(prop.
Name
))) {
639
if (!Object.Equals(Values[configProperty.
Name
], compareToElem.Values[configProperty.
Name
])) {
640
if (!(((Values[configProperty.
Name
] == null ||
641
Values[configProperty.
Name
] == s_nullPropertyValue) &&
642
Object.Equals(compareToElem.Values[configProperty.
Name
], configProperty.DefaultValue)) ||
643
((compareToElem.Values[configProperty.
Name
] == null ||
644
compareToElem.Values[configProperty.
Name
] == s_nullPropertyValue) &&
645
Object.Equals(Values[configProperty.
Name
], configProperty.DefaultValue))))
665
Object o = _values[prop.
Name
];
669
o = _values[prop.
Name
];
688
_values.SetValue(prop.
Name
, childElement, ConfigurationValueFlags.Inherited, null);
916
((_lockedAllExceptAttributesList != null && _lockedAllExceptAttributesList.HasParentElements && !_lockedAllExceptAttributesList.DefinedInParent(prop.
Name
)) ||
917
(_lockedAttributesList != null && (_lockedAttributesList.DefinedInParent(prop.
Name
) || _lockedAttributesList.DefinedInParent(LockAll))) ||
920
throw new ConfigurationErrorsException(SR.GetString(SR.Config_base_attribute_locked, prop.
Name
));
930
_values[prop.
Name
] = (value != null) ? value : s_nullPropertyValue;
1019
if (prop == null || (collectionKeys != null && !collectionKeys.Contains(prop.
Name
)))
1039
if (prop == null || (collectionKeys != null && !collectionKeys.Contains(prop.
Name
))) {
1046
object value = sourceElement.Values[prop.
Name
];
1064
value2 = parentElement.Values[prop.
Name
]; // if so get it's value
1073
_values[prop.
Name
] = value;
1078
bool modified = sourceElement.Values.IsModified(prop.
Name
);
1079
bool inherited = sourceElement.Values.IsInherited(prop.
Name
);
1086
_values[prop.
Name
] = value;
1092
_values[prop.
Name
] = value;
1094
_values[prop.
Name
] = value2;
1162
if (prop == null || (collectionKeys != null && !collectionKeys.Contains(prop.
Name
))) {
1172
if (section != null && !section.ShouldSerializePropertyInTargetVersion(prop, prop.
Name
, _configRecord.TargetFramework, this)) {
1182
if ((_lockedAllExceptAttributesList != null && _lockedAllExceptAttributesList.HasParentElements && !_lockedAllExceptAttributesList.DefinedInParent(prop.
Name
)) ||
1183
(_lockedAttributesList != null && _lockedAttributesList.DefinedInParent(prop.
Name
))) {
1185
throw new ConfigurationErrorsException(SR.GetString(SR.Config_base_required_attribute_locked, prop.
Name
));
1208
writer.WriteAttributeString(prop.
Name
, xmlValue);
1243
if (prop.
Name
!= ConfigurationProperty.DefaultCollectionPropertyName) {
1244
DataToWrite |= elem.SerializeToXmlElement(writer, prop.
Name
);
1259
throw new ConfigurationErrorsException(SR.GetString(SR.Config_base_element_cannot_have_multiple_child_elements, prop.
Name
));
1302
if (validProp.
Name
!= LockAttributesKey &&
1303
validProp.
Name
!= LockAllAttributesExceptKey &&
1304
validProp.
Name
!= LockElementsKey &&
1305
validProp.
Name
!= LockAllElementsExceptKey
1313
sb.Append(validProp.
Name
);
1322
sb.Append(validProp.
Name
);
1403
throw new ConfigurationErrorsException(SR.GetString(SR.Config_base_required_attribute_lock_attempt, propToLock.
Name
));
1630
if (!string.IsNullOrEmpty(prop.
Name
) &&
1665
if (!(string.IsNullOrEmpty(prop.
Name
) || _lockedAllExceptElementsList.Contains(prop.
Name
)) &&
1792
if (prop.IsRequired && !_values.Contains(prop.
Name
)) {
1795
_values[prop.
Name
] = OnRequiredPropertyNotFound(prop.
Name
);
System\Configuration\ConfigurationLockCollection.cs (1)
109
throw new ConfigurationErrorsException(SR.GetString(SR.Config_base_required_attribute_lock_attempt, propToLock.
Name
));
System\Configuration\ConfigurationPropertyCollection.cs (4)
56
if (cp.
Name
== name) {
67
if (cp.
Name
== name) {
75
if (Contains(property.
Name
) != true) {
84
if (cp.
Name
== name) {
System\Configuration\PropertyInformationCollection.cs (3)
28
if (prop.
Name
!= ThisElement.ElementTagName) {
29
BaseAdd(prop.
Name
, new PropertyInformation(thisElement, prop.
Name
));
System\Configuration\ProviderSettings.cs (8)
88
if (prop.
Name
!= "name" && prop.
Name
!= "type")
90
if (_PropertyNameCollection.Get(prop.
Name
) == null)
96
if ((Values.GetConfigValue(prop.
Name
).ValueFlags & ConfigurationValueFlags.Locked) == 0) {
97
removeList.Add(prop.
Name
);
175
if (prop.
Name
!= "name" && prop.
Name
!= "type")
176
_PropertyNameCollection.Add(prop.
Name
, (string)base[prop]);
System.ServiceModel (7)
System\ServiceModel\Configuration\BindingsSection.cs (3)
32
bindingCollectionElements.Add(property.
Name
, this[property.
Name
]);
176
bindingCollections.Add(this[property.
Name
]);
System\ServiceModel\Configuration\ServiceModelExtensionCollectionElement.cs (1)
612
if (!this.Properties.Contains(property.
Name
))
System\ServiceModel\Configuration\StandardEndpointsSection.cs (3)
32
endpointCollectionElements.Add(property.
Name
, this[property.
Name
]);
91
endpointCollections.Add(this[property.
Name
]);
System.Web (35)
Configuration\CompilationSection.cs (3)
902
_propCodeSubDirs.
Name
), CodeSubDirectories.ElementInformation.Source, CodeSubDirectories.ElementInformation.LineNumber);
907
_propBuildProviders.
Name
), BuildProviders.ElementInformation.Source, BuildProviders.ElementInformation.LineNumber);
913
_propFolderLevelBuildProviders.
Name
), FolderLevelBuildProviders.ElementInformation.Source, FolderLevelBuildProviders.ElementInformation.LineNumber);
Configuration\ConfigUtil.cs (1)
128
PropertyInformation propInfo = configSection.ElementInformation.Properties[property.
Name
];
Configuration\GlobalizationSection.cs (14)
275
errorLine = ElementInformation.Properties[errorProperty.
Name
].LineNumber;
284
if (errorLine > ElementInformation.Properties[_propResponseHeaderEncoding.
Name
].LineNumber) {
286
errorLine = ElementInformation.Properties[errorProperty.
Name
].LineNumber;
296
if (errorLine > ElementInformation.Properties[_propRequestEncoding.
Name
].LineNumber) {
298
errorLine = ElementInformation.Properties[errorProperty.
Name
].LineNumber;
308
if (errorLine > ElementInformation.Properties[_propFileEncoding.
Name
].LineNumber) {
310
errorLine = ElementInformation.Properties[errorProperty.
Name
].LineNumber;
319
if (errorLine > ElementInformation.Properties[_propCulture.
Name
].LineNumber) {
321
errorLine = ElementInformation.Properties[_propCulture.
Name
].LineNumber;
331
if (errorLine > ElementInformation.Properties[_propUICulture.
Name
].LineNumber) {
333
errorLine = ElementInformation.Properties[_propUICulture.
Name
].LineNumber;
338
throw new ConfigurationErrorsException(SR.GetString(SR.Invalid_value_for_globalization_attr, errorProperty.
Name
),
339
ElementInformation.Properties[errorProperty.
Name
].Source, ElementInformation.Properties[errorProperty.
Name
].LineNumber);
Configuration\HttpModuleAction.cs (3)
108
_modualEntry = new ModulesEntry(Name, Type, _propType.
Name
, this);
114
ElementInformation.Properties[_propType.
Name
].Source, ElementInformation.Properties[_propType.
Name
].LineNumber);
Configuration\HttpRuntimeSection.cs (6)
425
ElementInformation.Properties[_propMaxRequestLength.
Name
].Source,
426
ElementInformation.Properties[_propMaxRequestLength.
Name
].LineNumber);
441
ElementInformation.Properties[_propRequestLengthDiskThreshold.
Name
].Source,
442
ElementInformation.Properties[_propRequestLengthDiskThreshold.
Name
].LineNumber);
828
ElementInformation.Properties[_propRequestPathInvalidCharacters.
Name
].Source,
829
ElementInformation.Properties[_propRequestPathInvalidCharacters.
Name
].LineNumber);
Configuration\IdentitySection.cs (2)
145
if (source.ElementInformation.Properties[_propUserName.
Name
].IsModified ||
146
source.ElementInformation.Properties[_propPassword.
Name
].IsModified) {
Configuration\PagesSection.cs (3)
256
string PropName = _propEnableSessionState.
Name
;
366
ElementInformation.Properties[_propPageBaseType.
Name
].ValueOrigin != PropertyValueOrigin.Default) {
383
ElementInformation.Properties[_propUserControlBaseType.
Name
].ValueOrigin != PropertyValueOrigin.Default) {
Configuration\SiteMapSection.cs (2)
137
ElementInformation.Properties[_propDefaultProvider.
Name
].Source,
138
ElementInformation.Properties[_propDefaultProvider.
Name
].LineNumber);
Configuration\WebControlsSection.cs (1)
50
runtimeHashTable[prop.
Name
] = base[prop];