RegistryPermission::GetPathList Method (RegistryPermissionAccess)
Gets paths for all registry variables with the specified RegistryPermissionAccess.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- access
-
Type:
System.Security.Permissions::RegistryPermissionAccess
One of the RegistryPermissionAccess values that represents a single type of registry variable access.
Return Value
Type: System::String^A list of the registry variables (semicolon-separated) with the specified RegistryPermissionAccess.
| Exception | Condition |
|---|---|
| ArgumentException | access is not a valid value of RegistryPermissionAccess. -or- access is AllAccess, which represents more than one type of registry variable access, or NoAccess, which does not represent any type of registry variable access. |
Use this method to get the state of the current permission. You must call this method separately for each type of access.
Note |
|---|
The access parameter is limited to the values of RegistryPermissionAccess, which represent single types of registry variable access. Those values are Read, Write, and Create. The values acceptable to access do not include NoAccess and AllAccess, which do not represent single types of registry variable access. |
Available since 1.1
