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