Re: Declarative or Imperative Security

From: Diego Parolin (diegoMatrix@bedin.it)
Date: 01/24/03


From: "Diego Parolin" <diegoMatrix@bedin.it>
Date: Fri, 24 Jan 2003 08:41:54 +0100


thanks Ivan,

Diego

--
If you want contact me directly, please remove "Matrix"
"Ivan Medvedev [MS]" <ivanmed@online.microsoft.com> wrote in message
news:eUKg$AzwCHA.2528@TK2MSFTNGP09...
> Diego -
> it is not a question of better or worse, each method works fine and there
> are scenarios that one method is more suitable for than another. Some
> highlights: with the imperative approach one can construct permission
> objects dynamically at the run time (with declarative you have to know
what
> the permission should be when writing the code, not always convenient for
> FileIOPermission and such), there are actions (LinkDemand,
> InheritanceDemand) that can only be done declaratively, declarative
> attributes can be read and processed by code analisys tools, for example
> PermView or FxCop (the imperative security is not so easy to
read/process).
>
> Hope this helps.
> --Ivan
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
>
> "Diego Parolin" <diegoMatrix@bedin.it> wrote in message
> news:ORD2WeswCHA.2600@TK2MSFTNGP11...
> > In your opinion, what is the better?
> >
> > TIA,
> > Diego Parolin
> >
> > --
> > If you want contact me directly, please remove "Matrix"
> >
> >
>
>