How to create a key in the system or local machine Registry in c#

How to create a key in the system or local machine Registry in c#

using Microsoft.Win32
RegistryKey _myKey;
            _myKey = Registry.CurrentUser.CreateSubKey("RegistryName");
            _myKey.SetValue("RegistryName", "aspdotnetpools.com");
            _myKey.Close();

2020-03-16