Night Walker
Night Walker

Reputation: 21280

.net registry reading writing

Can you refer me to some good reference how I can read write to registry via .net resources ?

I checked the site and couldn't find any good information.

Upvotes: 9

Views: 14807

Answers (2)

JaredPar
JaredPar

Reputation: 755317

Check out the Registry class in the BCL

Example:

using(var key = Registry.CurrentUser.OpenSubKey(@"Software\MyProduct")) {
  var value = key.GetValue("SomeValueKey");
  ..
}

Upvotes: 7

jason
jason

Reputation: 241771

Look at Microsoft.Win32.Registry. There is an abundance of sample code there. You can also look at CodeProject. Lastly, MSDN has a good overview on the Registry.

Upvotes: 5

Related Questions