FileIOPermission.AddPathList Method (FileIOPermissionAccess, String[])

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: