Returns an Integer containing the major version number of the runtime currently in use.
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
The following example uses the ScriptEngineMajorVersion property and related properties to return a string describing the current run-time information:
Function getRuntimeInfo() As String Dim runtime As String = ScriptEngine & " Version " runtime &= CStr(ScriptEngineMajorVersion) & "." runtime &= CStr(ScriptEngineMinorVersion) & "." runtime &= CStr(ScriptEngineBuildVersion) ' Return the current runtime information. Return runtime End Function
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.