AddPathList Method (RegistryPermissionAccess, String)
Collapse the table of content
Expand the table of content

RegistryPermission::AddPathList Method (RegistryPermissionAccess, String^)


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

Namespace:   System.Security.Permissions
Assembly:  mscorlib (in mscorlib.dll)

void AddPathList(
	RegistryPermissionAccess access,
	String^ pathList


Type: System.Security.Permissions::RegistryPermissionAccess

One of the RegistryPermissionAccess values.

Type: System::String^

A list of registry variables (semicolon-separated).

Exception Condition

The access parameter is not a valid value of RegistryPermissionAccess.


The pathList parameter is not a valid string.

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

The following code example shows the use of the AddPathList(RegistryPermissionAccess, String^) method.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
© 2016 Microsoft