diff --git a/src/System.Management.Automation/engine/PSVersionInfo.cs b/src/System.Management.Automation/engine/PSVersionInfo.cs index c8eb9c86740..11ba7ee498b 100644 --- a/src/System.Management.Automation/engine/PSVersionInfo.cs +++ b/src/System.Management.Automation/engine/PSVersionInfo.cs @@ -13,9 +13,22 @@ namespace System.Management.Automation { /// + /// /// Encapsulates $PSVersionTable. + /// + /// + /// Provides a simple interface to retrieve details from the PowerShell version table: + /// + /// PSVersionInfo.PSVersion; + /// + /// The above statement retrieves the PowerShell version. + /// + /// PSVersionInfo.PSEdition; + /// + /// The above statement retrieves the PowerShell edition. + /// /// - internal class PSVersionInfo + public class PSVersionInfo { internal const string PSVersionTableName = "PSVersionTable"; internal const string PSRemotingProtocolVersionName = "PSRemotingProtocolVersion"; @@ -151,7 +164,10 @@ private static Version GetWSManStackVersion() #region Programmer APIs - internal static Version PSVersion + /// + /// Gets the version of PowerShell. + /// + public static Version PSVersion { get { @@ -175,7 +191,10 @@ internal static Version[] PSCompatibleVersions } } - internal static string PSEdition + /// + /// Gets the edition of PowerShell. + /// + public static string PSEdition { get {