Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Am I missing something with PrincipalPermissionAttribute?

0 views
Skip to first unread message

Anders K. Jacobsen [DK]

unread,
Nov 15, 2004, 3:19:05 PM11/15/04
to
Hi after read this article i wanted to try the security feuteres in .net.

In the artcle they claim that you should use it eg. like this:

[System.Security.Permissions.PrincipalPermissionAttribute(System.Security.Permissions.SecurityAction.Demand,
User="Joe")]
public void test()
{
// Some secure stuff
}


But there is no overload for 2 parameters in the constructor...only one. Why
is that?

This is the only accessible constructor.

[System.Security.Permissions.PrincipalPermissionAttribute(System.Security.Permissions.SecurityAction.Demand)]

Thanks in regards
Anders Jaocbsen


Anders K. Jacobsen [DK]

unread,
Nov 15, 2004, 3:24:35 PM11/15/04
to
> In the artcle they claim that you should use it eg. like this:

And this was the article:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT03.asp

/
Anders


0 new messages