注册表中的信息 [英] information in registry

查看:53
本文介绍了注册表中的信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

AssemblyName.GetAssemblyName("").Version.ToString() 将给出版本号,但我需要从注册表中获取版本号

AssemblyName.GetAssemblyName("").Version.ToString() will give the version number ,,but i need to get version number from registry

注册表路径在我的电脑-> HKEY_LOCAL_MACHINE->SOFTWARE->

registry path is under MY computer -> HKEY_LOCAL_MACHINE->SOFTWARE->

leaf->monitor here 当前版本文件在那里,从那里我们需要

leaf->monitor here current version file is there,,from there we need to

获取版本号

推荐答案

可以使用以下代码获取版本键值:

you can use the following code to get the version key value:

RegistryKey key= Registry.LocalMachine.OpenSubKey("SOFTWARE").OpenSubKey("leaf").OpenSubKey("monitor ");
string version = key.GetValue("version");

现在检查:)

这篇关于注册表中的信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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