我需要更改注册表中的子项。

我在Google上搜索了很多,但找不到任何更改子项的方法。

Microsoft是否支持此功能?

我可以使用此更改键/值对,但不能更改子键

Registry.SetValue(keypath, subkey, Guid.NewGuid().ToString("B"));

最佳答案

您正在寻找RegistryKey.CreateSubKey方法。

示例(来自http://msdn.microsoft.com/en-us/library/ad51f2dx.aspx):

 RegistryKey test9999 = Registry.CurrentUser.CreateSubKey("Test9999");

关于c# - 使用C#修改注册表中的子项,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/8007159/

10-13 02:38