54 references to ConfigurationLockCollectionType
System.Configuration (54)
System\Configuration\ConfigurationElement.cs (42)
156
_lockedAttributesList = new ConfigurationLockCollection(this,
ConfigurationLockCollectionType
.LockedAttributes);
169
_lockedAttributesList = new ConfigurationLockCollection(this,
ConfigurationLockCollectionType
.LockedAttributes);
176
_lockedAllExceptAttributesList = new ConfigurationLockCollection(this,
ConfigurationLockCollectionType
.LockedExceptionList, String.Empty, source._lockedAllExceptAttributesList);
189
_lockedElementsList = new ConfigurationLockCollection(this,
ConfigurationLockCollectionType
.LockedElements);
214
_lockedAllExceptElementsList = new ConfigurationLockCollection(this,
ConfigurationLockCollectionType
.LockedElementsExceptionList, source._elementTagName, source._lockedAllExceptElementsList);
297
_lockedAllExceptAttributesList = new ConfigurationLockCollection(this,
ConfigurationLockCollectionType
.LockedExceptionList, _elementTagName);
306
_lockedElementsList = new ConfigurationLockCollection(this,
ConfigurationLockCollectionType
.LockedElements);
315
_lockedAllExceptElementsList = new ConfigurationLockCollection(this,
ConfigurationLockCollectionType
.LockedElementsExceptionList, _elementTagName);
522
_lockedAttributesList = new ConfigurationLockCollection(this,
ConfigurationLockCollectionType
.LockedAttributes);
527
_lockedAllExceptAttributesList = new ConfigurationLockCollection(this,
ConfigurationLockCollectionType
.LockedExceptionList, String.Empty, parentElement._lockedAllExceptAttributesList);
530
_lockedElementsList = new ConfigurationLockCollection(this,
ConfigurationLockCollectionType
.LockedElements);
550
_lockedAllExceptElementsList = new ConfigurationLockCollection(this,
ConfigurationLockCollectionType
.LockedElementsExceptionList, parentElement._elementTagName, parentElement._lockedAllExceptElementsList);
1287
internal void ReportInvalidLock(string attribToLockTrim,
ConfigurationLockCollectionType
lockedType, ConfigurationValue value, String collectionProperties) {
1293
((lockedType ==
ConfigurationLockCollectionType
.LockedElements) || (lockedType ==
ConfigurationLockCollectionType
.LockedElementsExceptionList))) {
1307
if ((lockedType ==
ConfigurationLockCollectionType
.LockedElements) ||
1308
(lockedType ==
ConfigurationLockCollectionType
.LockedElementsExceptionList)) {
1331
if ((lockedType ==
ConfigurationLockCollectionType
.LockedElements) ||
1332
(lockedType ==
ConfigurationLockCollectionType
.LockedElementsExceptionList)) {
1351
private ConfigurationLockCollection ParseLockedAttributes(ConfigurationValue value,
ConfigurationLockCollectionType
lockType) {
1357
if (lockType ==
ConfigurationLockCollectionType
.LockedAttributes)
1359
if (lockType ==
ConfigurationLockCollectionType
.LockedElements)
1361
if (lockType ==
ConfigurationLockCollectionType
.LockedExceptionList)
1363
if (lockType ==
ConfigurationLockCollectionType
.LockedElementsExceptionList)
1372
if (!((lockType ==
ConfigurationLockCollectionType
.LockedElements ||
1373
lockType ==
ConfigurationLockCollectionType
.LockedAttributes) &&
1381
(lockType !=
ConfigurationLockCollectionType
.LockedElements && lockType !=
ConfigurationLockCollectionType
.LockedElementsExceptionList &&
1383
((lockType ==
ConfigurationLockCollectionType
.LockedElements || lockType ==
ConfigurationLockCollectionType
.LockedElementsExceptionList) &&
1394
lockType ==
ConfigurationLockCollectionType
.LockedAttributes || // If the collection type is not element then the lock is bogus
1395
lockType ==
ConfigurationLockCollectionType
.LockedExceptionList) {
1575
_lockedAttributesList = new ConfigurationLockCollection(this,
ConfigurationLockCollectionType
.LockedAttributes);
1576
foreach (string key in ParseLockedAttributes(LockedAttributesList,
ConfigurationLockCollectionType
.LockedAttributes)) {
1584
ConfigurationLockCollection newCollection = ParseLockedAttributes(LockedAllExceptList,
ConfigurationLockCollectionType
.LockedExceptionList);
1586
_lockedAllExceptAttributesList = new ConfigurationLockCollection(this,
ConfigurationLockCollectionType
.LockedExceptionList, String.Empty, newCollection);
1608
_lockedElementsList = new ConfigurationLockCollection(this,
ConfigurationLockCollectionType
.LockedElements);
1610
ConfigurationLockCollection localLockedElementList = ParseLockedAttributes(LockedElementList,
ConfigurationLockCollectionType
.LockedElements);
1642
ConfigurationLockCollection newCollection = ParseLockedAttributes(LockedAllElementsExceptList,
ConfigurationLockCollectionType
.LockedElementsExceptionList);
1644
_lockedAllExceptElementsList = new ConfigurationLockCollection(this,
ConfigurationLockCollectionType
.LockedElementsExceptionList, _elementTagName, newCollection);
1677
_lockedElementsList = new ConfigurationLockCollection(this,
ConfigurationLockCollectionType
.LockedElements);
1681
_lockedAllExceptElementsList = new ConfigurationLockCollection(this,
ConfigurationLockCollectionType
.LockedElementsExceptionList, reader.Name);
System\Configuration\ConfigurationLockCollection.cs (12)
30
private
ConfigurationLockCollectionType
_lockType;
35
: this(thisElement,
ConfigurationLockCollectionType
.LockedAttributes) {
38
internal ConfigurationLockCollection(ConfigurationElement thisElement,
ConfigurationLockCollectionType
lockType)
42
internal ConfigurationLockCollection(ConfigurationElement thisElement,
ConfigurationLockCollectionType
lockType, string ignoreName)
46
internal ConfigurationLockCollection(ConfigurationElement thisElement,
ConfigurationLockCollectionType
lockType,
54
_bExceptionList = _lockType ==
ConfigurationLockCollectionType
.LockedExceptionList ||
55
_lockType ==
ConfigurationLockCollectionType
.LockedElementsExceptionList;
77
internal
ConfigurationLockCollectionType
LockType {
99
_lockType ==
ConfigurationLockCollectionType
.LockedAttributes || // If the collection type is not element then the lock is bogus
100
_lockType ==
ConfigurationLockCollectionType
.LockedExceptionList) {
112
if ((_lockType ==
ConfigurationLockCollectionType
.LockedElements) ||
113
(_lockType ==
ConfigurationLockCollectionType
.LockedElementsExceptionList)) {