IPrincipal Interface

IPrincipal Interface


Defines the basic functionality of a principal object.

Namespace:   System.Security.Principal
Assembly:  mscorlib (in mscorlib.dll)

public interface IPrincipal


Gets the identity of the current principal.


Determines whether the current principal belongs to the specified role.

A principal object represents the security context of the user on whose behalf the code is running, including that user's identity (IIdentity) and any roles to which they belong.

All principal objects are required to implement the IPrincipal interface. For more information about IPrincipal implementations, see the ClaimsPrincipal class.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
© 2015 Microsoft