Collapse the table of content
Expand the table of content

System.Security.Principal Namespace

The System.Security.Principal namespace defines a principal object that represents the security context under which code is running. For more information, see Role-Based Security.

Namespace hierarchy


Class Description
GenericIdentity Represents a generic user.
GenericPrincipal Represents a generic principal.
WindowsIdentity Represents a Windows user.
WindowsImpersonationContext Represents the Windows user prior to an impersonation operation.
WindowsPrincipal Allows code to check the Windows group membership of a Windows user.


Interface Description
IIdentity Defines the basic functionality of an identity object.
IPrincipal Defines the basic functionality of a principal object.


Enumeration Description
PrincipalPolicy Specifies how principal and identity objects should be created for an application domain. The default is UnauthenticatedPrincipal.
WindowsAccountType Specifies the type of Windows account used.
WindowsBuiltInRole Specifies common roles to be used with IsInRole.

See Also

.NET Framework Class Library

© 2015 Microsoft