Export (0) Print
Expand All

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 _
)
[C#]
public FileIOPermission(
   FileIOPermissionAccess access,
 string[] pathList
);
[C++]
public: FileIOPermission(
   FileIOPermissionAccess access,
 String* pathList __gc[]
);
[JScript]
public function FileIOPermission(
   access : FileIOPermissionAccess,
 pathList : String[]
);

Parameters

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

Exceptions

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

-or-

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

Remarks

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

Requirements

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

Show:
© 2014 Microsoft