1: 2: 3: 4: 5: 6:
usar System.Security.Permissions; Permiso de RegistryPermission = nuevo RegistryPermission (RegistryPermissionAccess.AllAccess, @ " HKEY_LOCAL_ MÁQUINA \ software \ MySoftware \ MyKey "); permiso. Demanda ();