Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <e1$(E-Mail Removed)>
Newsgroups: microsoft.public.dotnet.general
NNTP-Posting-Host: b146.dkm.cz 62.24.66.146
Lines: 1
Path: number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!enews.sgi.com!msrnewsc1!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
Xref: number1.nntp.dca.giganews.com microsoft.public.dotnet.general:145893
Hallo,
I need to make an Attribute, which checks the minimal authorization
(authorization is specific for application) for calling class method. It
can looks like this:
[Authorization(Rights.Read)]
void SomeMethodRequiresTheReadAccess()
{.....}
But in this case no method of AuthorizationAttribute is called. I add
only attribute to method's collection of attributes and I must tested
the authorization inside the method (respects the attribute value).
Does anybody help me?
George
|