System.Security.Permissions.RegistryPermissionAccess values are independent; rights to one type of access do not imply rights to another. For instance, Write permission does not imply permission to Read or Create.
Although RegistryPermissionAccess.NoAccess and RegistryPermissionAccess.AllAccess appear in System.Security.Permissions.RegistryPermissionAccess, they are not valid for use as the parameter for RegistryPermission.GetPathList(RegistryPermissionAccess) because they describe no registry variable access types or all registry variable access types, respectively, and RegistryPermission.GetPathList(RegistryPermissionAccess) expects a single registry variable access type.
Member Name | Description |
---|---|
AllAccess |
RegistryPermissionAccess.Create, RegistryPermissionAccess.Read, and RegistryPermissionAccess.Write access to registry variables. RegistryPermissionAccess.AllAccess represents multiple System.Security.Permissions.RegistryPermissionAccess values and causes an ArgumentException when used as the access parameter for the RegistryPermission.GetPathList(RegistryPermissionAccess) method, which expects a single value. |
Create |
Create access to registry variables. |
NoAccess |
No access to registry variables. RegistryPermissionAccess.NoAccess represents no valid System.Security.Permissions.RegistryPermissionAccess values and causes an ArgumentException when used as the parameter for RegistryPermission.GetPathList(RegistryPermissionAccess), which expects a single value. |
Read |
Read access to registry variables. |
Write |
Write access to registry variables. |