Partager via


PSHost.Version Property

Definition

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.

Applies to