[英]How to create read only registry key?
有没有办法在C#中创建只读注册表项?
When you create a subkey you can provide permissions, and you can also call SetAccessControl
afterwards. 创建子项时,您可以提供权限,之后也可以调用
SetAccessControl
。 Both of these use the RegistrySecurity
class to represent the ACLs. 这两个都使用
RegistrySecurity
类来表示ACL。
It's not as simple as "read-only" but it should be able to represent what you want. 它不像“只读”那么简单,但它应该能够代表你想要的东西。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.