Registry.GetValue : Registry « Microsoft.Win32 « C# / C Sharp by API






Registry.GetValue

 

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

    }
}

   
  








Related examples in the same category

1.Registry.CurrentUser
2.Registry.LocalMachine
3.Registry.SetValue