EnvironmentPermission.AddPathList Method (EnvironmentPermissionAccess, String)

 

Adds access for the specified environment variables to the existing state of the permission.

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

member AddPathList : 
        flag:EnvironmentPermissionAccess *
        pathList:string -> unit

Parameters

flag
Type: System.Security.Permissions.EnvironmentPermissionAccess

One of the EnvironmentPermissionAccess values.

pathList
Type: System.String

A list of environment variables (semicolon-separated).

Exception Condition
ArgumentNullException

The pathList parameter is null.

ArgumentException

The flag parameter is not a valid value of EnvironmentPermissionAccess.

Use this method to modify environment variable access by adding to the state of the current permission.

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

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

.NET Framework
Available since 1.1
Return to top
Show: