The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft