在注册表中的删除oracle9i中需要的名称空间 [英] namespace which is requried in remove oracle9i in registry

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

问题描述

请在这段代码中告诉我需要哪个名称空间吗?




please, can you tell me in this code which namespace is requried?




string keyName = @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run";//Path of Key,You can specify full path
using (RegistryKey key = Registry.CurrentUser.OpenSubKey(keyName, true))
{
    if (key == null)
    {
        // Key doesn't exist. Do whatever you want to handle
        // this case
    }
    else
    {
        key.DeleteValue("Value");
    }
}

推荐答案

您需要mscorlib.dll,将此dll添加到您的引用中,它将位于VS的安装目录中:)

右键单击引用并选择添加引用,在.Net选项卡下,您将找到此DLL
You need mscorlib.dll, add this dll in your references,it will be located in installation directory of VS :)

Right click on references and select add referece,under .Net tab you''ll find this DLL


尝试此

try this

using System.Security.Permissions;
using Microsoft.Win32;



通过此链接



go thru this link


这篇关于在注册表中的删除oracle9i中需要的名称空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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