Is it possible to get the Registry values through C#.net , if so what classes used for it?

 Posted by Sashys on 5/3/2011 | Category: C# Interview questions | Views: 3160 | Points: 40
Answer:

With the help of Registry and RegistryKey classes of Microsoft.win32 we can do in .net.
We create instance of Registrykey class . Registry is static class , so we can access its method directly.
Sample in highlevel:

[code]RegistryKey Obj;
obj=Register.LocalMachine
Object Value=Obj.GetValue("Variable")[/code]


Asked In: One Interview | Alert Moderator 

Comments or Responses

Login to post response

More Interview Questions by Sashys