System.Security.Principal.WindowsPrincipal Class

Enables code to check the Windows group membership of a Windows user.

See Also: WindowsPrincipal Members


public class WindowsPrincipal : IPrincipal


The System.Security.Principal.WindowsPrincipal class is primarily used to check the role of a Windows user. The erload:System.Security.Principal.WindowsPrincipal.IsInRole method overloads let you check the user role by using different role contexts.


Namespace: System.Security.Principal
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0,,