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 Constructor (RegistryPermissionAccess, String^)

 

Initializes a new instance of the RegistryPermission class with the specified access to the specified registry variables.

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

public:
RegistryPermission(
	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) to which access is granted.

Exception Condition
ArgumentException

The access parameter is not a valid value of RegistryPermissionAccess.

-or-

The pathList parameter is not a valid string.

This constructor allows only one of the RegistryPermissionAccess values to be specified. This access applies to all listed registry variables. Use AddPathList to define more complicated permissions.

The following code example shows the use of the RegistryPermission(RegistryPermissionAccess, String^) constructor.

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