When supplying the string value for this windows principal method .... do you always to supply the Domain also or can you just supply the Group's name and thats abt it???
MSDN:
//Get the role using the string value of the role.
Console.WriteLine("{0}", myPrincipal.IsInRole("BUILTIN\\Administrators"));
Console.WriteLine("{0}", myPrincipal.IsInRole("BUILTIN\\Users"));
// I have cut it down to make it fit on one line??? // it's going to return true or false i know that but is the usage of the method correct????
Can you someone please clear this up for me ... as then i wil know why I was wrong or potentially right (saw it on the exam)??? I am of the impression that you always need to supply domain informatiom followed my group name or username??? Is this correct?