This ASP.NET Security tutorial explains how to use WindowsPrincipal class in Windows Authentication in C#.
You can use WindowsPrincipal class to access WindowsIdentity object through the Identity property. You need this when your project is based on Windows authentication and you use in your code User property which returns an IPrincipal object as instance of [...]