none
Wrrrrrr..... principal.IsInRole ......

    Question

  • It seems like

    1         bool IsMember(string r)  
    2         {  
    3             WindowsIdentity identity = WindowsIdentity.GetCurrent();  
    4             WindowsPrincipal principal = new WindowsPrincipal(identity);  
    5             return principal.IsInRole(r);  
    6         }  
    7  

    I can't get a true return !!!!

    I think it should work for names (strings) too - or what did I misunderstand ?

    Monday, January 26, 2009 1:19 PM

Answers

  • Your code's syntax is correct. Ask in the .Net BCL forum if a class in the library is not working as you expected.
    MSMVP VC++
    • Marked as answer by PSAKSor Tuesday, January 27, 2009 1:11 PM
    Monday, January 26, 2009 8:21 PM