29.

In ASP.NET if one uses Windows authentication the current request attaches an object called

The WindowsPrincipal class is primarily used to check the role of a Windows user. The WindowsPrincipal.IsInRole overloads let you check the user role by using different role contexts.