From 080372b9adf903024f32fe64c820fe903e4c8b79 Mon Sep 17 00:00:00 2001 From: Dongbo Wang Date: Wed, 18 Dec 2019 09:54:32 -0800 Subject: [PATCH] Mark InitialSessionState.ImportPSSnapIn as Obsolete --- src/System.Management.Automation/engine/InitialSessionState.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/System.Management.Automation/engine/InitialSessionState.cs b/src/System.Management.Automation/engine/InitialSessionState.cs index 06ebd01d3a3..2b419bddba3 100644 --- a/src/System.Management.Automation/engine/InitialSessionState.cs +++ b/src/System.Management.Automation/engine/InitialSessionState.cs @@ -3782,6 +3782,7 @@ private static void ThrowTypeOrFormatErrors(string resourceString, string errorM /// /// /// + [Obsolete("Custom PSSnapIn is deprecated. Please use a module instead.", true)] public PSSnapInInfo ImportPSSnapIn(string name, out PSSnapInException warning) { if (string.IsNullOrEmpty(name))