Am I missing something with PrincipalPermissionAttribute?

  • Thread starter Anders K. Jacobsen [DK]
  • Start date
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
474,141
Messages
2,570,817
Members
47,361
Latest member
eitamoro

Latest Threads

Top