Jefe,
You can't get a list of roles for a principal (for example, the one
returned through the static CurrentPrincipal property on the Thread class).
Rather, you pass the name of the role to the IPrincipal's implementation of
IsInRole, and if it returns true, then the user is in the role.
It's up to the application context to establish the roles (depending on
the kind of principal you are using).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Jefe" <Je**@discussions.microsoft.com> wrote in message
news:87**********************************@microsof t.com...
Hi group
How can I find out the role of user in my local computer using imperative
role-based security?
Regards,