System.Security.Principal.WindowsPrincipal Class

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

See Also: WindowsPrincipal Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public class WindowsPrincipal : IPrincipal

Remarks

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.

Requirements

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