RegistryPermission.GetPathList Method (RegistryPermissionAccess)

 

Gets paths for all registry variables with the specified RegistryPermissionAccess.

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

member GetPathList : 
        access:RegistryPermissionAccess -> string

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.

System_CAPS_noteNote

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.

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

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

.NET Framework
Available since 1.1
Return to top
Show: