> Is there an easy way to look at the roles stored in the > WindowsPrincipal > without having to repeatedly call .IsInRole()? Or is there > an easier way > to declarative security against the WindowsPrincipal?
It's funny that the roles aren't exposed to a greater extent. Anyone who's looked that the WindowsPrincipal in a debugger has seen the m_roles just sitting there, waiting to be plucked. A hacker might suggest a little private reflection ;-). You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.
