When doing a WindowsPrincipal.IsInRole() on a role other than the built in chappes you get an error if the role doesn't exist. How can you find out if this is the case?
Printable View
When doing a WindowsPrincipal.IsInRole() on a role other than the built in chappes you get an error if the role doesn't exist. How can you find out if this is the case?
I'm not sure I understand the question. Are you trying to trap the error if it occurs, or are you trying to determine if the role exists before ever trying to base logic on that role?