System.Security.Permissions.RegistryPermissionAccess Enumeration

Specifies the permitted access to registry keys and values.

Syntax

[System.Flags]
[System.Runtime.InteropServices.ComVisible(true)]
public enum RegistryPermissionAccess

Remarks

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.

Note:

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.

Members

Member NameDescription
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.

Requirements

Namespace: System.Security.Permissions
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0