public void SetAccessControl(RegistrySecurity registrySecurity) { if (null == registrySecurity) { throw new ArgumentNullException("registrySecurity"); } registrySecurity.PersistModifications(Name); }