FileIOPermission issue

From: Mircea Pleteriu (mpleteriu_at_asp-gmbh.de)
Date: 05/31/04

  • Next message: rskokan: "Submitting certificate request"
    Date: Mon, 31 May 2004 11:17:54 +0300
    
    

    Hi all,

    I have this code sample

    FileIOPermission fp = new FileIOPermission(PermissionState.Unrestricted);

    fp.Deny();

    StreamWriter sw = new StreamWriter(@"c:\test.txt");

    sw.Write("Test");

    sw.Close();

    I do not understand why the file is still created?


  • Next message: rskokan: "Submitting certificate request"