101 references to ConfigurationValueFlags
System.Configuration.ConfigurationManager (101)
System\Configuration\ConfigurationElement.cs (56)
56
internal
ConfigurationValueFlags
_itemLockedFlag;
87
internal
ConfigurationValueFlags
ItemLocked => _itemLockedFlag;
99
get { return (_itemLockedFlag &
ConfigurationValueFlags
.Locked) != 0; }
102
if ((_itemLockedFlag &
ConfigurationValueFlags
.Inherited) == 0)
104
_itemLockedFlag = value ?
ConfigurationValueFlags
.Locked :
ConfigurationValueFlags
.Default;
105
_itemLockedFlag |=
ConfigurationValueFlags
.Modified;
145
Values.SetValue(prop.Name, childElement,
ConfigurationValueFlags
.Inherited, null);
258
_itemLockedFlag = (source._itemLockedFlag &
ConfigurationValueFlags
.Locked) != 0
259
?
ConfigurationValueFlags
.Inherited | source._itemLockedFlag
269
_lockedAttributesList.Add(key,
ConfigurationValueFlags
.Inherited);
283
_lockedAllExceptAttributesList.Add(key,
ConfigurationValueFlags
.Default);
308
_lockedElementsList.Add(key,
ConfigurationValueFlags
.Inherited);
310
collection?._lockedElementsList.Add(key,
ConfigurationValueFlags
.Inherited);
340
_lockedAllExceptElementsList.Add(key,
ConfigurationValueFlags
.Default);
384
ConfigurationValueFlags
flags =
ConfigurationValueFlags
.Inherited |
385
ConfigurationValueFlags
.Locked;
419
|| ((_itemLockedFlag &
ConfigurationValueFlags
.Modified) != 0))
452
_itemLockedFlag =
ConfigurationValueFlags
.Locked |
ConfigurationValueFlags
.XmlParentInherited;
520
((_itemLockedFlag &
ConfigurationValueFlags
.Inherited) != 0)
546
_itemLockedFlag = (parentElement._itemLockedFlag &
ConfigurationValueFlags
.Locked) != 0
547
?
ConfigurationValueFlags
.Inherited | parentElement._itemLockedFlag
548
:
ConfigurationValueFlags
.Default;
556
_lockedAttributesList.Add(key,
ConfigurationValueFlags
.Inherited);
585
_lockedElementsList.Add(key,
ConfigurationValueFlags
.Inherited);
630
ConfigurationValueFlags
flags =
ConfigurationValueFlags
.Inherited |
636
?
ConfigurationValueFlags
.Locked
637
:
ConfigurationValueFlags
.Default);
836
(((_itemLockedFlag &
ConfigurationValueFlags
.Locked) != 0) &&
837
((_itemLockedFlag &
ConfigurationValueFlags
.Inherited) != 0))))
932
ConfigurationValueFlags
valueFlags = sourceElement.Values.RetrieveFlags(key);
1119
if (((_itemLockedFlag &
ConfigurationValueFlags
.Locked) != 0) &&
1120
((_itemLockedFlag &
ConfigurationValueFlags
.Inherited) == 0) &&
1121
((_itemLockedFlag &
ConfigurationValueFlags
.XmlParentInherited) == 0))
1359
localLockedAttributesList.Add(attribToLockTrim,
ConfigurationValueFlags
.Default); // Mark as local
1402
Values.SetValue(reader.Name, null,
ConfigurationValueFlags
.Modified, rootInfo);
1403
Values.SetValue(DefaultCollectionPropertyName, defaultCollection,
ConfigurationValueFlags
.Modified,
1410
(((_itemLockedFlag &
ConfigurationValueFlags
.Locked) != 0) &&
1411
((_itemLockedFlag &
ConfigurationValueFlags
.Inherited) != 0))
1445
ConfigurationValueFlags
.Modified,
1466
ConfigurationValueFlags
.Default, new PropertySourceInfo(reader));
1470
ConfigurationValueFlags
.Default, new PropertySourceInfo(reader));
1474
ConfigurationValueFlags
.Default, new PropertySourceInfo(reader));
1478
ConfigurationValueFlags
.Default, new PropertySourceInfo(reader));
1580
_itemLockedFlag =
ConfigurationValueFlags
.Locked;
1592
_lockedAttributesList.Add(key,
ConfigurationValueFlags
.Default); // add the local copy
1596
ConfigurationValueFlags
.Modified |
ConfigurationValueFlags
.Inherited); // add the local copy
1617
_lockedAllExceptAttributesList.Add(key,
ConfigurationValueFlags
.Default);
1639
_lockedElementsList.Add(key,
ConfigurationValueFlags
.Default); // add the local copy
1679
_lockedAllExceptElementsList.Add(key,
ConfigurationValueFlags
.Default); // add the local copy
1890
tempLockList.Add(lockedAttributeName,
ConfigurationValueFlags
.Default);
1899
tempLockList.Add(lockedAttributeName,
ConfigurationValueFlags
.Default);
System\Configuration\ConfigurationLockCollection.cs (31)
49
Add(key,
ConfigurationValueFlags
.Inherited); // add the local copy
94
if (((
ConfigurationValueFlags
)de.Value &
ConfigurationValueFlags
.Inherited) != 0)
127
if (((_thisElement.ItemLocked &
ConfigurationValueFlags
.Locked) != 0) &&
128
((_thisElement.ItemLocked &
ConfigurationValueFlags
.Inherited) != 0))
131
ConfigurationValueFlags
flags =
ConfigurationValueFlags
.Modified;
186
flags =
ConfigurationValueFlags
.Modified | (
ConfigurationValueFlags
)_internalDictionary[name];
195
internal void Add(string name,
ConfigurationValueFlags
flags)
197
if ((flags !=
ConfigurationValueFlags
.Inherited) && _internalDictionary.Contains(name))
201
flags =
ConfigurationValueFlags
.Modified | (
ConfigurationValueFlags
)_internalDictionary[name];
218
(((
ConfigurationValueFlags
)_internalDictionary[name] &
ConfigurationValueFlags
.Inherited) != 0);
230
(((
ConfigurationValueFlags
)_internalDictionary[name] &
ConfigurationValueFlags
.Inherited) != 0);
236
(((
ConfigurationValueFlags
)_internalDictionary[name] &
ConfigurationValueFlags
.Modified) != 0);
258
(((
ConfigurationValueFlags
)_internalDictionary[name] &
ConfigurationValueFlags
.Inherited) != 0))
260
if (((
ConfigurationValueFlags
)_internalDictionary[name] &
ConfigurationValueFlags
.Modified) == 0)
265
ConfigurationValueFlags
flags = (
ConfigurationValueFlags
)_internalDictionary[name];
266
flags &= ~
ConfigurationValueFlags
.Modified;
281
if ((((
ConfigurationValueFlags
)de.Value &
ConfigurationValueFlags
.Inherited) == 0)
295
foreach (string key in keys) Add(key,
ConfigurationValueFlags
.Inherited);
326
((
ConfigurationValueFlags
)_internalDictionary[name] &
ConfigurationValueFlags
.Inherited) != 0;
System\Configuration\ConfigurationValue.cs (2)
11
internal
ConfigurationValueFlags
ValueFlags;
13
internal ConfigurationValue(object value,
ConfigurationValueFlags
valueFlags, PropertySourceInfo sourceInfo)
System\Configuration\ConfigurationValues.cs (7)
25
set { SetValue(key, value,
ConfigurationValueFlags
.Modified, null); }
89
private ConfigurationValue CreateConfigValue(object value,
ConfigurationValueFlags
valueFlags,
109
internal void SetValue(string key, object value,
ConfigurationValueFlags
valueFlags,
121
internal
ConfigurationValueFlags
RetrieveFlags(string key)
124
return configurationValue?.ValueFlags ??
ConfigurationValueFlags
.Default;
131
return (configurationValue.ValueFlags &
ConfigurationValueFlags
.Modified) != 0;
139
return (configurationValue.ValueFlags &
ConfigurationValueFlags
.Inherited) != 0;
System\Configuration\ElementInformation.cs (2)
24
public bool IsLocked => ((_thisElement.ItemLocked &
ConfigurationValueFlags
.Locked) != 0) &&
25
((_thisElement.ItemLocked &
ConfigurationValueFlags
.Inherited) != 0);
System\Configuration\PropertyInformation.cs (2)
59
(((_thisElement.ItemLocked &
ConfigurationValueFlags
.Locked) != 0) &&
60
((_thisElement.ItemLocked &
ConfigurationValueFlags
.Inherited) != 0));
System\Configuration\ProviderSettings.cs (1)
118
if ((Values.GetConfigValue(prop.Name).ValueFlags &
ConfigurationValueFlags
.Locked) != 0)