PSHost.Version 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.
Gets the version of the hosting application. This value should remain invariant for a particular build of the host. This value may be referenced by scripts and cmdlets.
public:
abstract property Version ^ Version { Version ^ get(); };
public abstract Version Version { get; }
member this.Version : Version
Public MustOverride ReadOnly Property Version As Version
Property Value
The version number of the hosting application.
Remarks
When implementing this member, it should return the product version number for the product that is hosting the PowerShell engine.