RegistryPermission Constructor (RegistryPermissionAccess, String^)
Initializes a new instance of the RegistryPermission class with the specified access to the specified registry variables.
Assembly: mscorlib (in mscorlib.dll)
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.
Available since 1.1