AddPathList Method (FileIOPermissionAccess, String[])

FileIOPermission.AddPathList Method (FileIOPermissionAccess, String[])

 

Adds access for the specified files and directories to the existing state of the permission.

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

public void AddPathList(
	FileIOPermissionAccess access,
	string[] pathList
)

Parameters

access
Type: System.Security.Permissions.FileIOPermissionAccess

A bitwise combination of the FileIOPermissionAccess values.

pathList
Type: 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.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft