•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 374,571 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,550 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser:
CAS is the programatically means by which you secure the resouce of a system like file system, printer, registry, etc. in contrast to Role Base Security (RBS)
Last edited : Mar 26th, 2008.
using System.Security.Permissions; using System.Security; using System.IO; [assembly: FileIOPermissionAttribute(SecurityAction.RequestRefuse , Write="d:\\")] namespace WindowsFormsApplication1 { public partial class Form1 : Form { StreamWriter sw; private void button1_Click(object sender, EventArgs e) { sw = File.CreateText("d:\\Shalvin.txt"); sw.WriteLine("Hello"); sw.Close(); }
Post Comment
•
•
•
•
DaniWeb Marketplace (Sponsored Links)