ClaimsPrincipal 成員
Provides methods that retrieve information about the current caller.
下表列出 ClaimsPrincipal 型別公開的成員。
公用 建構函式
名稱 | 描述 | |
---|---|---|
ClaimsPrincipal | 多載。 |
最上層
公用 屬性
名稱 | 描述 | |
---|---|---|
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. |
最上層
公用 方法
(另請參閱 受保護的 方法)
名稱 | 描述 | |
---|---|---|
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) |
最上層
受保護的 方法
名稱 | 描述 | |
---|---|---|
Finalize | (繼承自 Object) | |
MemberwiseClone | (繼承自 Object) |
最上層
請參閱
參考
ClaimsPrincipal 類別
Microsoft.IdentityModel.Claims 命名空間
Copyright © 2008 by Microsoft Corporation.All rights reserved.