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)

public:
void AddPathList(
	RegistryPermissionAccess access,
	String^ pathList
)

Parameters

access
Type: System.Security.Permissions::RegistryPermissionAccess

One of the RegistryPermissionAccess values.

pathList
Type: System::String^

A list of registry variables (semicolon-separated).

Exception Condition
ArgumentException

The access parameter is not a valid value of RegistryPermissionAccess.

-or-

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
Show:
© 2016 Microsoft