System.Security.AccessControl.RegistryRights Enumeration

Specifies the access control rights that can be applied to registry objects.

Syntax

[System.Flags]
public enum RegistryRights

Remarks

Use the System.Security.AccessControl.RegistryRights enumeration to specify registry access rights when you create System.Security.AccessControl.RegistrySecurity objects. To apply access rights to a registry key, first add System.Security.AccessControl.RegistryAccessRule objects to a System.Security.AccessControl.RegistrySecurity object, then attach the System.Security.AccessControl.RegistrySecurity object to the key using the Microsoft.Win32.RegistryKey.SetAccessControl(RegistrySecurity) method, or an appropriate overload of the erload:Microsoft.Win32.RegistryKey.CreateSubKey method.

Members

Member NameDescription
ChangePermissions

The right to change the access rules and audit rules associated with a registry key.

Reserved for system use.

CreateSubKey

The right to create subkeys of a registry key.

Delete

The right to delete a registry key.

EnumerateSubKeys

The right to list the subkeys of a registry key.

ExecuteKey

Same as RegistryRights.ReadKey.

FullControl

The right to exert full control over a registry key, and to modify its access rules and audit rules.

Notify

The right to request notification of changes on a registry key.

QueryValues

The right to query the name/value pairs in a registry key.

ReadKey

The right to query the name/value pairs in a registry key, to request notification of changes, to enumerate its subkeys, and to read its access rules and audit rules.

ReadPermissions

The right to open and copy the access rules and audit rules for a registry key.

SetValue

The right to create, delete, or set name/value pairs in a registry key.

TakeOwnership

The right to change the owner of a registry key.

WriteKey

The right to create, delete, and set the name/value pairs in a registry key, to create or delete subkeys, to request notification of changes, to enumerate its subkeys, and to read its access rules and audit rules.

Requirements

Namespace: System.Security.AccessControl
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0