FileIOPermission.AllLocalFiles Property

Gets or sets the permitted access to all local files.

Namespace:  System.Security.Permissions
Assembly:  mscorlib (in mscorlib.dll)

public FileIOPermissionAccess AllLocalFiles { get; set; }

Property Value

Type: System.Security.Permissions.FileIOPermissionAccess
The set of file I/O flags for all local files.

Local files are files contained on the local computer. Any files not accessed through a network drive are local files.

An individual FileIOPermissionAccess value can be checked for using a bitwise AND operation.

The following code example shows the use of the AllLocalFiles property.

            FileIOPermission f = new FileIOPermission(PermissionState.None);
            f.AllLocalFiles = FileIOPermissionAccess.Read;
            catch (SecurityException s)

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft