Export (0) Print
Expand All
Expand Minimize

RegistryPermissionAccess Enumeration

Specifies the permitted access to registry keys and values.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

[Visual Basic]
<Flags>
<Serializable>
Public Enum RegistryPermissionAccess
[C#]
[Flags]
[Serializable]
public enum RegistryPermissionAccess
[C++]
[Flags]
[Serializable]
__value public enum RegistryPermissionAccess
[JScript]
public
   Flags
 Serializable
enum RegistryPermissionAccess

Remarks

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 NoAccess and AllAccess appear in RegistryPermissionAccess, they are not valid for use as the parameter for GetPathList because they describe no registry variable access types or all registry variable access types, respectively, and GetPathList expects a single registry variable access type.

Members

Member name Description Value
AllAccess Create, Read, and Write access to registry variables. AllAccess represents multiple RegistryPermissionAccess values and causes an ArgumentException when used as the access parameter for the GetPathList method, which expects a single value. 7
Create Create access to registry variables. 4
NoAccess No access to registry variables. NoAccess represents no valid RegistryPermissionAccess values and causes an ArgumentException when used as the parameter for GetPathList, which expects a single value. 0
Read Read access to registry variables. 1
Write Write access to registry variables. 2

Requirements

Namespace: System.Security.Permissions

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

See Also

System.Security.Permissions Namespace | RegistryPermission | RegistryPermissionAttribute

Show:
© 2014 Microsoft