遍历注册表,获取到了值,但是修改出了问题,请大大帮忙看看。
public void FindSymantec(RegistryKey MyKey)
{
//Console.WriteLine("Searching { 0 }...", MyKey.ToString());
// 获取所有键名
foreach (string MyValueName in MyKey.GetValueNames())
{
// 键类型
if (MyKey.GetValueKind(MyValueName) == RegistryValueKind.String)
{
// 获取键值
string MyValue = MyKey.GetValue(MyValueName).ToString().ToLower();
if (MyValue.Contains("http://www.68la.com/"))
{
MyValue.Replace("http://www.68la.com/", "about:blank"); --- 这里已经遍历到他的值了,为什么还是修改不了? 请高手帮忙看看
}
}
}