Defines the basic functionality of a principal object.
Assembly: mscorlib (in mscorlib.dll)
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 ClaimsPrincipal class.interface. For more information about implementations, see the
Available since 4.5
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1