Information
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.
This topic has not yet been rated - Rate this topic

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

Classes

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.

Interfaces

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

Enumerations

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.