Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.48 KB | None | 0 0
  1. //storing the values  
  2.             key.SetValue("Setting1", "This is our setting 1");
  3.             key.SetValue("Setting2", "This is our setting 2");
  4.             key.Close();
  5.  
  6.             //opening the subkey  
  7.  
  8.  
  9.             //if it does exist, retrieve the stored values  
  10.             if (key != null)
  11.             {
  12.                 Console.WriteLine(key.GetValue("Setting1"));
  13.                 Console.WriteLine(key.GetValue("Setting2"));
  14.                 key.Close();
  15.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement