IsInRole
C#
3
Posts
2
Posters
0
Views
1
Watching
-
Hi, very simple question: WindowsPrincipal principal = (WindowsPrincipal) Thread.CurrentPrincipal; bool bIsInRole = principal.IsInRole(WindowsBuiltInRole.Administrator); What if the role is a user defined role? (ie. not built in) Thanks. norm
How about:
bool isDishWasher = principal.IsInRole("DishWasher");
Cheers, Julian Program Manager, C# This posting is provided "AS IS" with no warranties, and confers no rights.
-
How about:
bool isDishWasher = principal.IsInRole("DishWasher");
Cheers, Julian Program Manager, C# This posting is provided "AS IS" with no warranties, and confers no rights.