确定操作系统是7.1 7.8还是8 [英] Determine if OS is 7.1 7.8 or 8

查看:83
本文介绍了确定操作系统是7.1 7.8还是8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

im试图找出电话上安装了哪个操作系统版本.
我已经看到有许多不同的内部版本号.什么是第一个7.8内部版本号?

还是有更好的方法可以找到它?

这是我实际使用的代码:

作为新版本的私人共享TargetedVersion(8,0)
公共共享的ReadOnly属性IsTargetedVersion()为布尔值
        得到
            如果Environment.OSVersion.Version.Major = 7并且Environment.OSVersion.Version.Build> 8779然后
                返回真
            别的
                返回Environment.OSVersion.Version> = TargetedVersion
            万一
        结束获取
    最终财产


解决方案

我还尝试使用Environment . OSVersion . Version . 次要变量,但7.1和7.8版本均具有相同的次要变量(10).

Helge  


Hi,

im trying to find out which OS version is installed on a Phone.
I have seen that there are many different Build Numbers. What is the very first 7.8 Build Number?

Or is there a better way to find it out?

This is the code im actually using:

Private Shared TargetedVersion As New Version(8, 0)
Public Shared ReadOnly Property IsTargetedVersion() As Boolean
        Get
            If Environment.OSVersion.Version.Major = 7 And Environment.OSVersion.Version.Build > 8779 Then
                Return True
            Else
                Return Environment.OSVersion.Version >= TargetedVersion
            End If
        End Get
    End Property


解决方案

Hi,

i have also tried to use the Environment.OSVersion.Version.Minor variable, but both versions 7.1 and 7.8 having the same Minor variable (10).

Helge 


这篇关于确定操作系统是7.1 7.8还是8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆