@@ -96,27 +96,30 @@ static SpecialVars()
9696 internal const string WarningPreference = "WarningPreference" ;
9797 internal const string ConfirmPreference = "ConfirmPreference" ;
9898 internal const string ProgressPreference = "ProgressPreference" ;
99+ internal const string InformationPreference = "InformationPreference" ;
99100
100- internal static readonly string [ ] PreferenceVariables = new string [ ]
101- {
102- DebugPreference ,
103- VerbosePreference ,
104- ErrorActionPreference ,
105- WhatIfPreference ,
106- WarningPreference ,
101+ internal static readonly string [ ] PreferenceVariables = new string [ ]
102+ {
103+ DebugPreference ,
104+ VerbosePreference ,
105+ ErrorActionPreference ,
106+ WhatIfPreference ,
107+ WarningPreference ,
107108 ConfirmPreference ,
108- ProgressPreference
109+ ProgressPreference ,
110+ InformationPreference
109111 } ;
110112
111- internal static readonly Type [ ] PreferenceVariableTypes = new Type [ ]
112- {
113- /* DebugPreference */ typeof ( ActionPreference ) ,
114- /* VerbosePreference */ typeof ( ActionPreference ) ,
115- /* ErrorPreference */ typeof ( ActionPreference ) ,
116- /* WhatIfPreference */ typeof ( SwitchParameter ) ,
117- /* WarningPreference */ typeof ( ActionPreference ) ,
118- /* ConfirmPreference */ typeof ( ConfirmImpact ) ,
113+ internal static readonly Type [ ] PreferenceVariableTypes = new Type [ ]
114+ {
115+ /* DebugPreference */ typeof ( ActionPreference ) ,
116+ /* VerbosePreference */ typeof ( ActionPreference ) ,
117+ /* ErrorPreference */ typeof ( ActionPreference ) ,
118+ /* WhatIfPreference */ typeof ( SwitchParameter ) ,
119+ /* WarningPreference */ typeof ( ActionPreference ) ,
120+ /* ConfirmPreference */ typeof ( ConfirmImpact ) ,
119121 /* ProgressPreference */ typeof ( Enum ) ,
122+ /* InformationPreference */ typeof ( ActionPreference ) ,
120123 } ;
121124
122125 internal enum AutomaticVariable
@@ -156,6 +159,7 @@ internal enum PreferenceVariable
156159 internal const string PathExt = "env:PATHEXT" ;
157160 internal const string PSEmailServer = "PSEmailServer" ;
158161 internal const string PSDefaultParameterValues = "PSDefaultParameterValues" ;
162+ internal const string PSModuleAutoLoadingPreference = "PSModuleAutoLoadingPreference" ;
159163 internal const string pwd = "PWD" ;
160164 internal const string Null = "null" ;
161165 internal const string True = "true" ;
@@ -176,6 +180,7 @@ internal enum PreferenceVariable
176180 PathExt ,
177181 PSEmailServer ,
178182 PSDefaultParameterValues ,
183+ PSModuleAutoLoadingPreference ,
179184 pwd ,
180185 Null ,
181186 True ,
0 commit comments