FileIOPermissionAttribute

FileIOPermissionAttributeECMA 1.0, serializable

System.Security.Permissions (mscorlib.dll)sealed class
public sealed class FileIOPermissionAttribute : CodeAccessSecurityAttribute { // Public Constructors    public FileIOPermissionAttribute(SecurityAction action); // Public Instance Properties    public string All{set; get; }    public string Append{set; get; }    public string PathDiscovery{set; get; }    public string Read{set; get; }    public string Write{set; get; } // Public Instance Methods    public override IPermission CreatePermission(  ); // overrides SecurityAttribute }

FileIOPermissionAttribute provides declarative syntax support for the FileIOPermission class. The All, Append, PathDiscovery, Read, and Write properties take the full pathname of the file or folder to which access of the appropriate level is granted. Each property represents access as defined by the FileIOPermissionAccess enumeration member of the same name. Unlike FileIOPermission, a FileIOPermissionAttribute can only represent access of each type to a single file or folder; apply multiple attributes to a program element in order to specify access to more than one. Setting Unrestricted to true represents full access to all files and folders.

Hierarchy

System.Object System.Attribute SecurityAttribute CodeAccessSecurityAttribute FileIOPermissionAttribute

Valid On

Assembly, Class, Struct, Constructor, Method



Programming. NET Security
Programming .Net Security
ISBN: 0596004427
EAN: 2147483647
Year: 2005
Pages: 346

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net