Get int value from Registry : Registry Read : Windows C# Examples


C# Examples » Windows » Registry Read »

 

Get int value from Registry









    
using  System;
using  Microsoft.Win32;

class  MainClass
{
        public  static  void  Main(String[]  args)
        {
                int  Count  =  (Int32)Registry.GetValue(
                                @"HKEY_CURRENT_USER\Software\CompanyName\SoftwareName",
                                "Count",  0);  //  0  is  the  default  value

        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Windows
» Registry Read