IPrincipal Interface

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Defines the basic functionality of a principal object.

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

[ComVisibleAttribute(true)]
public interface IPrincipal

NameDescription
System_CAPS_pubpropertyIdentity

Gets the identity of the current principal.

NameDescription
System_CAPS_pubmethodIsInRole(String)

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 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: