Edit

Share via


RegistryPermission.AddPathList Method

Definition

Adds access for the specified registry variables to the existing state of the permission.

Overloads

AddPathList(RegistryPermissionAccess, String)

Adds access for the specified registry variables to the existing state of the permission.

AddPathList(RegistryPermissionAccess, AccessControlActions, String)

Adds access for the specified registry variables to the existing state of the permission, specifying registry permission access and access control actions.

Remarks

Use this method to modify access to registry variables by adding the set of their paths to the state of the current permission object.

AddPathList(RegistryPermissionAccess, String)

Source:
RegistryPermission.cs
Source:
RegistryPermission.cs
Source:
RegistryPermission.cs
Source:
RegistryPermission.cs
Source:
RegistryPermission.cs

Adds access for the specified registry variables to the existing state of the permission.

public:
 void AddPathList(System::Security::Permissions::RegistryPermissionAccess access, System::String ^ pathList);
public void AddPathList(System.Security.Permissions.RegistryPermissionAccess access, string pathList);
member this.AddPathList : System.Security.Permissions.RegistryPermissionAccess * string -> unit
Public Sub AddPathList (access As RegistryPermissionAccess, pathList As String)

Parameters

pathList
String

A list of registry variables (semicolon-separated).

Exceptions

The access parameter is not a valid value of RegistryPermissionAccess.

-or-

The pathList parameter is not a valid string.

Remarks

Use this method to modify access to registry variables by adding to the state of the current permission object.

Applies to

AddPathList(RegistryPermissionAccess, AccessControlActions, String)

Source:
RegistryPermission.cs
Source:
RegistryPermission.cs
Source:
RegistryPermission.cs
Source:
RegistryPermission.cs
Source:
RegistryPermission.cs

Adds access for the specified registry variables to the existing state of the permission, specifying registry permission access and access control actions.

public:
 void AddPathList(System::Security::Permissions::RegistryPermissionAccess access, System::Security::AccessControl::AccessControlActions actions, System::String ^ pathList);
public:
 void AddPathList(System::Security::Permissions::RegistryPermissionAccess access, System::Security::AccessControl::AccessControlActions control, System::String ^ pathList);
public void AddPathList(System.Security.Permissions.RegistryPermissionAccess access, System.Security.AccessControl.AccessControlActions actions, string pathList);
public void AddPathList(System.Security.Permissions.RegistryPermissionAccess access, System.Security.AccessControl.AccessControlActions control, string pathList);
member this.AddPathList : System.Security.Permissions.RegistryPermissionAccess * System.Security.AccessControl.AccessControlActions * string -> unit
member this.AddPathList : System.Security.Permissions.RegistryPermissionAccess * System.Security.AccessControl.AccessControlActions * string -> unit
Public Sub AddPathList (access As RegistryPermissionAccess, actions As AccessControlActions, pathList As String)
Public Sub AddPathList (access As RegistryPermissionAccess, control As AccessControlActions, pathList As String)

Parameters

actionscontrol
AccessControlActions

One of the AccessControlActions values.

pathList
String

A list of registry variables (separated by semicolons).

Exceptions

The access parameter is not a valid value of RegistryPermissionAccess.

-or-

The pathList parameter is not a valid string.

Remarks

Use this method to modify access to registry variables by adding the set of their paths to the state of the current permission object. This overload allows you to specify the access control action as will as the registry permission access.

The control parameter specifies whether the access control list (ACL) for the registry keys specified by pathList can be changed, viewed, or cannot be accessed.

Important

An access control list (ACL) describes individuals or groups who have, or do not have, rights to specific actions on the specified registry keys. The ability to change or view an ACL is an important permission and should be granted with caution.

Applies to