Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining

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.

  Class Description
Public class GenericIdentity Represents a generic user.
Public class GenericPrincipal Represents a generic principal.
Public class IdentityNotMappedException Represents an exception for a principal whose identity could not be mapped to a known identity.
Public class IdentityReference Represents an identity and is the base class for the NTAccount and SecurityIdentifier classes. This class does not provide a public constructor, and therefore cannot be inherited.
Public class IdentityReferenceCollection Represents a collection of IdentityReference objects and provides a means of converting sets of IdentityReference-derived objects to IdentityReference-derived types.
Public class NTAccount Represents a user or group account.
Public class SecurityIdentifier Represents a security identifier (SID) and provides marshaling and comparison operations for SIDs.
Public class WindowsIdentity Represents a Windows user.
Public class WindowsImpersonationContext Represents the Windows user prior to an impersonation operation.
Public class WindowsPrincipal Enables code to check the Windows group membership of a Windows user.

  Interface Description
Public interface Supported by Portable Class Library IIdentity Defines the basic functionality of an identity object.
Public interface Supported by Portable Class Library IPrincipal Defines the basic functionality of a principal object.

  Enumeration Description
Public enumeration PrincipalPolicy Specifies how principal and identity objects should be created for an application domain. The default is UnauthenticatedPrincipal.
Public enumeration TokenAccessLevels Defines the privileges of the user account associated with the access token.
Public enumeration TokenImpersonationLevel Defines security impersonation levels. Security impersonation levels govern the degree to which a server process can act on behalf of a client process.
Public enumeration WellKnownSidType Defines a set of commonly used security identifiers (SIDs).
Public enumeration WindowsAccountType Specifies the type of Windows account used.
Public enumeration WindowsBuiltInRole Specifies common roles to be used with IsInRole.
© 2015 Microsoft