ScriptRequirements.RequiredPSVersion Property
Definition
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.
The PowerShell version this script requires, specified like:
#requires -Version 3
If no version has been specified, this property is null.
public:
property Version ^ RequiredPSVersion { Version ^ get(); };
public Version RequiredPSVersion { get; }
member this.RequiredPSVersion : Version
Public ReadOnly Property RequiredPSVersion As Version