Ejemplo n.º 1
0
        public void TestSetAccessControl()
        {
            var filename = Util.CreateNewFile(longPathDirectory);

            try
            {
                var fi       = new FileInfo(filename);
                var security = new FileSecurity();
                fi.SetAccessControl(security);
            }
            finally
            {
                File.Delete(filename);
            }
        }
Ejemplo n.º 2
0
 public void TestSetAccessControl()
 {
     var filename = Util.CreateNewFile(longPathDirectory);
     try
     {
         var fi = new FileInfo(filename);
         var security = new FileSecurity();
         fi.SetAccessControl(security);
     }
     finally
     {
         File.Delete(filename);
     }
 }