Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Initializes a new instance of the CodeAccessPermission class.
Syntax
public void new(str filename, str mode)
Run On
Called
Parameters
- filename
Type: str
A String data type that specifies the name of a file or folder.
- mode
Type: str
A String data type that specifies the type of access.
Remarks
The following table lists the possible values for the _mode parameter.
R |
Read |
W |
Write |
RW |
Read and write |
Examples
The following code example shows a new instance of the FileIoPermission class that specifies read access for the File.txt file.
server static void main(Args args)
{
FileIoPermission _perm;
_perm = new FileIoPermission("c:\\File.txt",'r');
}