Provides methods that retrieve information about the current caller.
下表列出了 ClaimsPrincipal 类型公开的成员。
Public 构造函数
| 名称 | 说明 | |
|---|---|---|
| ClaimsPrincipal | 已重载。 |
页首
Public 属性
| 名称 | 说明 | |
|---|---|---|
![]() |
AnonymousPrincipal | Gets a IClaimsPrincipal with a ClaimsIdentity that contains zero claims. |
![]() |
Identities | Gets the ClaimsIdentityCollection associated with this principal. |
![]() |
Identity | Gets the IIdentity of the current principal. |
页首
Public 方法
(另请参阅 Protected 方法)
| 名称 | 说明 | |
|---|---|---|
![]() |
Copy | Returns a new T:Microsoft.IdentityModel.Claims.ClaimsPrincipal object copied from this object |
![]() ![]() |
CreateFromHttpContext | 已重载。 |
![]() ![]() |
CreateFromIdentities | 已重载。 |
![]() ![]() |
CreateFromIdentity | 已重载。 |
![]() ![]() |
CreateFromPrincipal | 已重载。 |
![]() |
Equals | 已重载。 (从 Object 继承) |
![]() |
GetHashCode | (从 Object 继承) |
![]() |
GetType | (从 Object 继承) |
![]() |
IsInRole | This class interprets IsInRole as the reflection of whether this principal possesses a claim specified by a configured list. The claim value has no bearing on the result. |
![]() ![]() |
ReferenceEquals | (从 Object 继承) |
![]() ![]() |
SelectPrimaryIdentity | This method iterates through the collection of ClaimsIdentities and determines which identity must be used as the primary one. |
![]() |
ToString | (从 Object 继承) |
页首
Protected 方法
| 名称 | 说明 | |
|---|---|---|
![]() |
Finalize | (从 Object 继承) |
![]() |
MemberwiseClone | (从 Object 继承) |
页首
请参见
参考
ClaimsPrincipal 类
Microsoft.IdentityModel.Claims 命名空间
版权所有 (C) 2008 Microsoft Corporation。保留所有权利。
.gif)
.gif)
.gif)