Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FileIOPermission::AddPathList Method (FileIOPermissionAccess, array<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,
	array<String^>^ pathList
)

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.

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