0

我正在使用 .net 应用程序。我想将以下注册表项添加到应用程序。

HKLM\Software\Business Objects\Suite 11.5\Components\DHTMLViewer\EncodeHTMLForSingleLineFieldObjects

我怎样才能做到这一点?

4

1 回答 1

0

Use the Microsoft.Win32.Registry class

Registry.SetValue(@"HKLM\Software\Business Objects\Suite 11.5\Components\DHTMLViewer", "EncodeHTMLForSingleLineFieldObjects", "my value");

var value = Registry.GetValue(@"HKLM\Software\Business Objects\Suite 11.5\Components\DHTMLViewer", "EncodeHTMLForSingleLineFieldObjects", null);
于 2012-12-03T01:19:42.150 回答