RegistryValueKind.String : RegistryValueKind « Microsoft.Win32 « C# / C Sharp by API






RegistryValueKind.String

 

using System;
using Microsoft.Win32;

class MainClass
{
    public static void Main(String[] args)
    {
        Registry.SetValue(
            @"HKEY_CURRENT_USER\Software\CompanyName\SoftwareName",
            "DateTimeValue", DateTime.Now.ToString(), RegistryValueKind.String);

    }
}

   
  








Related examples in the same category

1.RegistryValueKind.DWord