1: 2: 3: 4: 5: 6:
using System.Security.Permissions; RegistryPermission Erlaubnis = neues RegistryPermission (RegistryPermissionAccess.AllAccess, @ " HKEY_LOCAL_ MASCHINE \ Software \ MySoftware \ MyKey "); Erlaubnis. Nachfrage ();