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
And this was the article:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT03.asp
/
Anders