ScriptRequirements.RequiredPSVersion Property

Definition

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

Property Value

Applies to