Set File IO Permission to c : FileStream : File Stream C# Source Code


Custom Search

C# Source Code » File Stream » FileStream »

 

Set File IO Permission to c








    


using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Permissions;


class Program {
    static void Main(string[] args) {
        MyClass.Method();
    }
}

[FileIOPermission(SecurityAction.Assert, Read = "C:/")]
class MyClass {
    public static void Method() {
        // implementation goes here
    }
}

           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo File Stream
» FileStream