CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sun, 24 Aug 2025 10:14:13 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20080328194615
location: https://web.archive.org/web/20080328194615/https://www.daniweb.com/code/snippet832.html
server-timing: captures_list;dur=6.673167, exclusion.robots;dur=0.022464, exclusion.robots.policy;dur=0.011101, esindex;dur=0.012610, cdx.remote;dur=36.270931, LoadShardBlock;dur=154.060174, PetaboxLoader3.datanode;dur=73.623106
x-app-server: wwwb-app215
x-ts: 302
x-tr: 223
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app215; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sun, 24 Aug 2025 10:14:13 GMT
content-type: text/html; charset=utf-8
x-archive-orig-date: Fri, 28 Mar 2008 19:46:15 GMT
x-archive-orig-server: Apache/2.2
x-archive-orig-x-powered-by: PHP/5.1.6
x-archive-orig-set-cookie: bblastactivity=0; expires=Sat, 28-Mar-2009 19:46:15 GMT; path=/; domain=.daniweb.com
x-archive-orig-cache-control: private
x-archive-orig-pragma: private
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Fri, 28 Mar 2008 19:46:15 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Fri, 28 Mar 2008 19:46:15 GMT", ; rel="memento"; datetime="Fri, 28 Mar 2008 19:46:15 GMT", ; rel="next memento"; datetime="Wed, 28 May 2008 18:48:10 GMT", ; rel="last memento"; datetime="Fri, 01 May 2009 21:45:36 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_2_20080328180707_crawl106-c/52_2_20080328194430_crawl104.arc.gz
server-timing: captures_list;dur=0.539986, exclusion.robots;dur=0.020266, exclusion.robots.policy;dur=0.009611, esindex;dur=0.010235, cdx.remote;dur=6.117677, LoadShardBlock;dur=46.924688, PetaboxLoader3.datanode;dur=67.457628, load_resource;dur=393.000163, PetaboxLoader3.resolve;dur=278.451137
x-app-server: wwwb-app215
x-ts: 200
x-tr: 517
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
Using Code Access Security (CAS) to programatically refuse writing to a drive - Shalvin - csharp
Using Code Access Security (CAS) to programatically refuse writing to a drive - Shalvin
•
•
•
•

What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 302,143 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 3,607 IT professionals currently interacting right now! If you are in the IT industry or are just a technology enthusiast, you might find just what you're looking for in DaniWeb. Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser: Modernize Legacy Data with Sybase
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 : 1 Day Ago.
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