How to create a new role / profile?

F

feol

Hi.

I'm modifying someone else application, adding a new role or profile, and I
don't have any idea how to do it. There are two roles already: Administrator
and User, then new role / profile is Manager.

They use the PrincipalPermissions (?) class. The application was developed
in C#, VS 2005.

As you may notice, I'm newbie in C#.

Thanks for your advice.

Regard form Méxcio
Fernando Olvera
 
F

feol

Beign a little more excplicit, the error ocurs in this new line:

[PrincipalPermissionAttribute(SecurityAction.Demand, Role="Administrators")]
[PrincipalPermissionAttribute(SecurityAction.Demand, Role="Users")]

//My new line
[PrincipalPermissionAttribute(SecurityAction.Demand, Role="Managers")]

class MainClass
{
public static void Main()
{...........
 
H

Hillbilly

What did you find out when you tried this web search query?

PrincipalPermissionAttribute site:msdn.microsoft.com
 
F

feol

Thanks, Hillbilly.

In fact, I'm looking everywhere, in every search engine, and I think I'm
getting the idea of how this works.

Regards
FeOl
 

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

Top