87 references to OverrideMode
System.Configuration (87)
System\Configuration\BaseConfigurationRecord.cs (39)
2491
if (overrideModeDefault.OverrideMode ==
OverrideMode
.Inherit) {
2492
overrideModeDefault.ChangeModeInternal(
OverrideMode
.Allow);
2747
private
OverrideMode
ResolveOverrideModeFromParent(string configKey, out
OverrideMode
childLockMode) {
2780
OverrideMode
mode =
OverrideMode
.Inherit;
2784
childLockMode =
OverrideMode
.Inherit;
2787
while (!parent.IsRootConfig && (mode ==
OverrideMode
.Inherit)) {
2795
mode = sectionRecord.Locked ?
OverrideMode
.Deny :
OverrideMode
.Allow;
2801
childLockMode = sectionRecord.LockChildren ?
OverrideMode
.Deny :
OverrideMode
.Allow;
2804
mode = sectionRecord.LockChildren ?
OverrideMode
.Deny :
OverrideMode
.Allow;
2816
if (mode ==
OverrideMode
.Inherit) {
2821
OverrideMode
defaultMode = FindFactoryRecord(configKey, true).OverrideModeDefault.OverrideMode;
2839
Debug.Assert(mode !=
OverrideMode
.Inherit); // Remember that the default is never Inherit
2849
mode =
OverrideMode
.Allow;
2855
Debug.Assert(mode !=
OverrideMode
.Inherit);
2860
protected
OverrideMode
GetSectionLockedMode(string configKey) {
2861
OverrideMode
dummy =
OverrideMode
.Inherit;
2867
protected
OverrideMode
GetSectionLockedMode(string configKey, out
OverrideMode
childLockMode) {
2869
OverrideMode
result =
OverrideMode
.Inherit;
2882
result = sectionRecord.Locked ?
OverrideMode
.Deny :
OverrideMode
.Allow;
2883
childLockMode = sectionRecord.LockChildren ?
OverrideMode
.Deny :
OverrideMode
.Allow;
3039
OverrideMode
sectionLockMode =
OverrideMode
.Inherit;
3040
OverrideMode
sectionChildLockMode =
OverrideMode
.Inherit;
3077
if (sectionLockMode ==
OverrideMode
.Deny) {
3732
OverrideMode
parentMode =
OverrideMode
.Inherit;
3733
OverrideMode
childLockMode =
OverrideMode
.Inherit;
System\Configuration\MgmtConfigurationRecord.cs (1)
1843
if (GetSectionLockedMode(sectionRecord.ConfigKey) ==
OverrideMode
.Deny) {
System\Configuration\OverrideMode.cs (25)
65
SectionDefault._mode = (byte)
OverrideMode
.Allow;
70
LocationDefault._mode = (byte)
OverrideMode
.Inherit;
81
result.SetMode(allowOverride ?
OverrideMode
.Inherit :
OverrideMode
.Deny);
87
static internal OverrideModeSetting CreateFromXmlReadValue(
OverrideMode
mode) {
96
internal static
OverrideMode
ParseOverrideModeXmlValue(string value, XmlUtil xmlUtil) {
102
return
OverrideMode
.Inherit;
105
return
OverrideMode
.Allow;
108
return
OverrideMode
.Deny;
202
OverrideMode
mode = OverrideMode;
205
return ((mode ==
OverrideMode
.Allow) || (mode ==
OverrideMode
.Inherit));
224
get { return OverrideMode ==
OverrideMode
.Deny;}
279
case
OverrideMode
.Inherit:
282
case
OverrideMode
.Allow:
285
case
OverrideMode
.Deny:
298
internal void ChangeModeInternal(
OverrideMode
mode) {
305
internal
OverrideMode
OverrideMode {
307
return (
OverrideMode
)(_mode & ModeMask);
328
case
OverrideMode
.Inherit:
329
case
OverrideMode
.Allow:
333
case
OverrideMode
.Deny:
353
SetMode(value ?
OverrideMode
.Inherit :
OverrideMode
.Deny);
359
private void SetMode(
OverrideMode
mode) {
System\Configuration\SectionInformation.cs (10)
336
public
OverrideMode
OverrideModeDefault {
350
if (value ==
OverrideMode
.Inherit) {
351
value =
OverrideMode
.Allow;
408
public
OverrideMode
OverrideMode {
420
case
OverrideMode
.Inherit:
426
case
OverrideMode
.Allow:
430
case
OverrideMode
.Deny:
441
public
OverrideMode
OverrideModeEffective {
443
return (_flags[Flag_ChildrenLocked] ?
OverrideMode
.Deny :
OverrideMode
.Allow);
System\Configuration\SectionRecord.cs (12)
172
internal void ChangeLockSettings(
OverrideMode
forSelf,
OverrideMode
forChildren) {
174
if (forSelf !=
OverrideMode
.Inherit) {
175
_flags[Flag_Locked] = (forSelf ==
OverrideMode
.Deny);
176
_flags[Flag_LockChildren] = (forSelf ==
OverrideMode
.Deny);
179
if (forChildren !=
OverrideMode
.Inherit) {
180
_flags[Flag_LockChildren] = ((forSelf ==
OverrideMode
.Deny) || (forChildren ==
OverrideMode
.Deny));
194
if (sectionInput.SectionXmlInfo.OverrideModeSetting.OverrideMode !=
OverrideMode
.Inherit) {
203
ChangeLockSettings(
OverrideMode
.Inherit, sectionInput.SectionXmlInfo.OverrideModeSetting.OverrideMode);
280
OverrideMode
modeLocation = sectionInput.SectionXmlInfo.OverrideModeSetting.OverrideMode;
282
if (modeLocation !=
OverrideMode
.Inherit) {