Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

RegistryPermission::SetPathList Method (RegistryPermissionAccess, String^)

 

Sets new access for the specified registry variable names to the existing state of the permission.

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

public:
void SetPathList(
	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.

The previous state of the current permission is overwritten.

The following code example shows the use of the SetPathList method.

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

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft