FileIOPermission::AddPathList Method (FileIOPermissionAccess, array<String^>^)
Adds access for the specified files and directories to the existing state of the permission.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- access
-
Type:
System.Security.Permissions::FileIOPermissionAccess
A bitwise combination of the FileIOPermissionAccess values.
- pathList
-
Type:
array<System::String^>^
An array containing the absolute paths of the files and directories.
| Exception | Condition |
|---|---|
| ArgumentException | The access parameter is not a valid value of FileIOPermissionAccess. -or- An entry in the pathList array is not valid. |
| NotSupportedException | An entry in the pathList array has an invalid format. |
| ArgumentNullException | The pathList parameter is null. |
Use this method to modify file and directory access by adding to the state of the current permission.
Available since 1.1