Edit

Share via


RegistryPermission.GetPathList(RegistryPermissionAccess) Method

Definition

Gets paths for all registry variables with the specified RegistryPermissionAccess.

public:
 System::String ^ GetPathList(System::Security::Permissions::RegistryPermissionAccess access);
public string GetPathList(System.Security.Permissions.RegistryPermissionAccess access);
member this.GetPathList : System.Security.Permissions.RegistryPermissionAccess -> string
Public Function GetPathList (access As RegistryPermissionAccess) As String

Parameters

access
RegistryPermissionAccess

One of the RegistryPermissionAccess values that represents a single type of registry variable access.

Returns

A list of the registry variables (semicolon-separated) with the specified RegistryPermissionAccess.

Exceptions

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.

Remarks

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.

Applies to