A
Anders K. Jacobsen [DK]
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
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