EnvironmentPermission.AddPathList(EnvironmentPermissionAccess, 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.
Adds access for the specified environment variables to the existing state of the permission.
public:
void AddPathList(System::Security::Permissions::EnvironmentPermissionAccess flag, System::String ^ pathList);
public void AddPathList(System.Security.Permissions.EnvironmentPermissionAccess flag, string pathList);
member this.AddPathList : System.Security.Permissions.EnvironmentPermissionAccess * string -> unit
Public Sub AddPathList (flag As EnvironmentPermissionAccess, pathList As String)
Parameters
One of the EnvironmentPermissionAccess values.
- pathList
- String
A list of environment variables (semicolon-separated).
Exceptions
The pathList
parameter is null
.
The flag
parameter is not a valid value of EnvironmentPermissionAccess.
Remarks
Use this method to modify environment variable access by adding to the state of the current permission.