vendredi 17 avril 2020

Registry class. If value exist

Im using the Microsoft.Win32.Registry class. Im trying to make a if value exist statement but don't know how

I want something like this:

Picture

private RegistryKey key = Registry.CurrentUser.CreateSubKey(@"SOFTWARE\Test");
if(key.ValueExist("myValue")) Console.WriteLine("value exist!");

Aucun commentaire:

Enregistrer un commentaire