83 references to OverrideMode
System.Configuration (1)
System.Configuration.cs (1)
75
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Configuration.
OverrideMode
))]
System.Configuration.ConfigurationManager (82)
System\Configuration\BaseConfigurationRecord.cs (34)
1965
if (overrideModeDefault.OverrideMode ==
OverrideMode
.Inherit)
1966
overrideModeDefault.ChangeModeInternal(
OverrideMode
.Allow);
2176
private
OverrideMode
ResolveOverrideModeFromParent(string configKey, out
OverrideMode
childLockMode)
2208
OverrideMode
mode =
OverrideMode
.Inherit;
2212
childLockMode =
OverrideMode
.Inherit;
2215
while (!parent.IsRootConfig && (mode ==
OverrideMode
.Inherit))
2225
mode = sectionRecord.Locked ?
OverrideMode
.Deny :
OverrideMode
.Allow;
2231
childLockMode = sectionRecord.LockChildren ?
OverrideMode
.Deny :
OverrideMode
.Allow;
2235
mode = sectionRecord.LockChildren ?
OverrideMode
.Deny :
OverrideMode
.Allow;
2247
if (mode ==
OverrideMode
.Inherit)
2252
OverrideMode
defaultMode = FindFactoryRecord(configKey, true).OverrideModeDefault.OverrideMode;
2265
Debug.Assert(mode !=
OverrideMode
.Inherit); // Remember that the default is never Inherit
2274
mode =
OverrideMode
.Allow;
2280
Debug.Assert(mode !=
OverrideMode
.Inherit);
2285
protected
OverrideMode
GetSectionLockedMode(string configKey)
2291
protected
OverrideMode
GetSectionLockedMode(string configKey, out
OverrideMode
childLockMode)
2293
OverrideMode
result;
2307
result = sectionRecord.Locked ?
OverrideMode
.Deny :
OverrideMode
.Allow;
2308
childLockMode = sectionRecord.LockChildren ?
OverrideMode
.Deny :
OverrideMode
.Allow;
2461
OverrideMode
sectionLockMode =
OverrideMode
.Inherit;
2462
OverrideMode
sectionChildLockMode =
OverrideMode
.Inherit;
2507
if (sectionLockMode ==
OverrideMode
.Deny)
3164
OverrideMode
childLockMode;
3165
OverrideMode
parentMode = ResolveOverrideModeFromParent(configKey, out childLockMode);
System\Configuration\MgmtConfigurationRecord.cs (1)
1705
if (GetSectionLockedMode(sectionRecord.ConfigKey) ==
OverrideMode
.Deny)
System\Configuration\OverrideModeSetting.cs (25)
28
internal static readonly OverrideModeSetting s_sectionDefault = new OverrideModeSetting { _mode = (byte)
OverrideMode
.Allow };
31
internal static readonly OverrideModeSetting s_locationDefault = new OverrideModeSetting { _mode = (byte)
OverrideMode
.Inherit };
42
result.SetMode(allowOverride ?
OverrideMode
.Inherit :
OverrideMode
.Deny);
48
internal static OverrideModeSetting CreateFromXmlReadValue(
OverrideMode
mode)
58
internal static
OverrideMode
ParseOverrideModeXmlValue(string value, XmlUtil xmlUtil) =>
63
BaseConfigurationRecord.OverrideModeInherit =>
OverrideMode
.Inherit,
64
BaseConfigurationRecord.OverrideModeAllow =>
OverrideMode
.Allow,
65
BaseConfigurationRecord.OverrideModeDeny =>
OverrideMode
.Deny,
149
OverrideMode
mode = OverrideMode;
152
return (mode ==
OverrideMode
.Allow) || (mode ==
OverrideMode
.Inherit);
172
internal bool IsLocked => OverrideMode ==
OverrideMode
.Deny;
242
case
OverrideMode
.Inherit:
244
case
OverrideMode
.Allow:
246
case
OverrideMode
.Deny:
258
internal void ChangeModeInternal(
OverrideMode
mode)
266
internal
OverrideMode
OverrideMode
268
get { return (
OverrideMode
)(_mode & ModeMask); }
292
case
OverrideMode
.Inherit:
293
case
OverrideMode
.Allow:
295
case
OverrideMode
.Deny:
315
SetMode(value ?
OverrideMode
.Inherit :
OverrideMode
.Deny);
320
private void SetMode(
OverrideMode
mode)
System\Configuration\SectionInformation.cs (10)
126
public
OverrideMode
OverrideModeDefault
141
if (value ==
OverrideMode
.Inherit) value =
OverrideMode
.Allow;
185
public
OverrideMode
OverrideMode
198
case
OverrideMode
.Inherit:
203
case
OverrideMode
.Allow:
206
case
OverrideMode
.Deny:
216
public
OverrideMode
OverrideModeEffective => _flags[FlagChildrenLocked] ?
OverrideMode
.Deny :
OverrideMode
.Allow
System\Configuration\SectionRecord.cs (12)
153
internal void ChangeLockSettings(
OverrideMode
forSelf,
OverrideMode
forChildren)
155
if (forSelf !=
OverrideMode
.Inherit)
157
_flags[FlagLocked] = forSelf ==
OverrideMode
.Deny;
158
_flags[FlagLockChildren] = forSelf ==
OverrideMode
.Deny;
161
if (forChildren !=
OverrideMode
.Inherit)
162
_flags[FlagLockChildren] = (forSelf ==
OverrideMode
.Deny) || (forChildren ==
OverrideMode
.Deny);
175
(sectionInput.SectionXmlInfo.OverrideModeSetting.OverrideMode !=
OverrideMode
.Inherit))
184
ChangeLockSettings(
OverrideMode
.Inherit,
240
OverrideMode
modeLocation = sectionInput.SectionXmlInfo.OverrideModeSetting.OverrideMode;
242
if (modeLocation !=
OverrideMode
.Inherit)