EnvironmentPermission.SetPathList(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.
Sets the specified access to the specified environment variables to the existing state of the permission.
public:
void SetPathList(System::Security::Permissions::EnvironmentPermissionAccess flag, System::String ^ pathList);
public void SetPathList(System.Security.Permissions.EnvironmentPermissionAccess flag, string pathList);
member this.SetPathList : System.Security.Permissions.EnvironmentPermissionAccess * string -> unit
Public Sub SetPathList (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
The previous state of the current permission is overwritten.