Share via


IVsaEngine.Version Property

Gets the current version of the language compiler supported by the script engine, in the form Major.Minor.Revision.Build.

public: __property String* get_Version();
public string Version {get;}
Public Property Get Version() As String

Return Value

String value of the current version, in the format Major.Minor.Revision.Build.

Remarks

The string returned from the Version property must be in the format specified, that is, four decimal numbers separated by periods, with each number set representing one of four fields (major, minor, revision, build). Where a script engine does not support one of the fields, it uses 0 for that segment of the string.

The Version property should be used in conjunction with the IVsaEngine.Language property for setting language- and version-dependent properties.

For more information, see .NET documentation for System.Version.

The following table shows the exceptions that the Version property can throw.

Exception Type

Condition

EngineClosed

The IVsaEngine.Close method has been called and the engine is closed.

EngineBusy

The engine is currently executing code for another thread.

EngineNotInitialized

The engine has not been initialized.

See Also

Reference

IVsaEngine Interface

IVsaEngine.Language Property