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