This documentation is archived and is not being maintained.

FileIOPermission Constructor (FileIOPermissionAccess, String[])

.NET Framework 1.1

Initializes a new instance of the FileIOPermission class with the specified access to the specified files and directories.

[Visual Basic]
Public Sub New( _
   ByVal access As FileIOPermissionAccess, _
   ByVal pathList() As String _
public FileIOPermission(
   FileIOPermissionAccess access,
 string[] pathList
public: FileIOPermission(
   FileIOPermissionAccess access,
 String* pathList __gc[]
public function FileIOPermission(
   access : FileIOPermissionAccess,
 pathList : String[]


A bitwise combination of the FileIOPermissionAccess values.
An array containing the absolute paths of the files and directories.


Exception Type Condition
ArgumentException The access parameter is not a valid value of FileIOPermissionAccess.


An entry in the pathList array is not a valid string.


This constructor only allows one FileIOPermissionAccess value to be specified for the specified files and directories. Use AddPathList to define complex permissions.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

FileIOPermission Class | FileIOPermission Members | System.Security.Permissions Namespace | FileIOPermission Constructor Overload List