Demand FileIOPermissionAccess.AllAccess : File Security Permission : Windows C# Source Code


Custom Search

C# Source Code » Windows » File Security Permission »

 

Demand FileIOPermissionAccess.AllAccess








    


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
using System.Security;
using System.Security.Permissions;

public class MainClass {
    public static void Main() {
        try {
            FileIOPermission fileIOPermission = new FileIOPermission(FileIOPermissionAccess.AllAccess, @"c:\");
            fileIOPermission.Demand();
        } catch (SecurityException) {
            
        }
    }
}
           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Windows
» File Security Permission