PSVersionInfo Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
C#
public class PSVersionInfo
C#
public static class PSVersionInfo
type PSVersionInfo = class
Public Class PSVersionInfo
- Inheritance
-
PSVersionInfo
Produit | Versions |
---|---|
PowerShell SDK | 7.2.0, 7.3.0, 7.4.0 |