Re: using webpermissions
From: Nicholas Paldino [.NET/C# MVP] (mvp_at_spam.guard.caspershouse.com)
Date: 09/28/04
- Next message: Dennis Myrén: "Re: Inherit from IDisposable - when?"
- Previous message: Rakesh Rajan: "Re: Password Storage"
- In reply to: cmrchs_at_yahoo.com: "Re: using webpermissions"
- Next in thread: Richard Blewett [DevelopMentor]: "Re: using webpermissions"
- Reply: Richard Blewett [DevelopMentor]: "Re: using webpermissions"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 28 Sep 2004 10:56:14 -0400
Chris,
No, you can not grant permissions that you do not have with this. If
the code you are running has permissions to access a website, then you can
call Assert on the permission to prevent stack walks asking for that
permission from going further up (the Assert will fail if you try and assert
a permission you don't have access to). Additionally, if you have code
running that you don't trust, then you can call Deny to deny the permission.
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
"Chris C" <cmrchs@yahoo.com> wrote in message
news:eane6oWpEHA.1992@TK2MSFTNGP09.phx.gbl...
> Hi Nicholas,
>
> I just try to understand how to use it.
>
> when I use a permissionObject
> myWebP.AddPermission(NetworkAccess.Connect,URL_LINUX);
>
> how do I use it then , does it mean that I allow access then to the
> UNIX-site ... but to whom ???
>
> and what if I call myWebP.Deny() afterwards, does it make sense at all ??
>
> thnx
> Chris
>
>
> **********************************************************************
> Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
> Comprehensive, categorised, searchable collection of links to ASP &
> ASP.NET resources...
- Next message: Dennis Myrén: "Re: Inherit from IDisposable - when?"
- Previous message: Rakesh Rajan: "Re: Password Storage"
- In reply to: cmrchs_at_yahoo.com: "Re: using webpermissions"
- Next in thread: Richard Blewett [DevelopMentor]: "Re: using webpermissions"
- Reply: Richard Blewett [DevelopMentor]: "Re: using webpermissions"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|