PC Review


Reply
Thread Tools Rate Thread

Calling an attribute method before calling a method with that attribute

 
 
George Vodpik
Guest
Posts: n/a
 
      9th Aug 2004
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CLI and calling the base method from the derived method DaTurk Microsoft VC .NET 2 11th Jul 2007 11:29 PM
Custom attribute for a method: how to get the method object ? Oriane Microsoft Dot NET 1 12th Jun 2005 09:47 PM
Creating Attribute/Calling Server VB.NET Function =?Utf-8?B?QW5vbnltb3Vz?= Microsoft ASP .NET 2 5th Nov 2004 03:23 AM
Can a method attribute execute code on method use? Tim Smith Microsoft C# .NET 1 2nd Nov 2004 03:18 AM
Calling protected method from interface that doesn't include method Jon Shemitz Microsoft C# .NET 2 25th Nov 2003 11:33 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:15 PM.