RegistryPermission.SetPathList(RegistryPermissionAccess, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets new access for the specified registry variable names to the existing state of the permission.
public:
void SetPathList(System::Security::Permissions::RegistryPermissionAccess access, System::String ^ pathList);
public void SetPathList(System.Security.Permissions.RegistryPermissionAccess access, string pathList);
member this.SetPathList : System.Security.Permissions.RegistryPermissionAccess * string -> unit
Public Sub SetPathList (access As RegistryPermissionAccess, pathList As String)
Parameters
- access
- RegistryPermissionAccess
One of the RegistryPermissionAccess values.
- pathList
- String
A list of registry variables (semicolon-separated).
Exceptions
The access
parameter is not a valid value of RegistryPermissionAccess.
-or-
The pathList
parameter is not a valid string.
Remarks
The previous state of the current permission is overwritten.