ClaimsPrincipal 成员

Provides methods that retrieve information about the current caller.

下表列出了 ClaimsPrincipal 类型公开的成员。

Public 构造函数

  名称 说明
  ClaimsPrincipal 已重载。  

页首

Public 属性

  名称 说明
public property static AnonymousPrincipal Gets a IClaimsPrincipal with a ClaimsIdentity that contains zero claims.
public property Identities Gets the ClaimsIdentityCollection associated with this principal.
public property Identity Gets the IIdentity of the current principal.

页首

Public 方法

(另请参阅 Protected 方法)

  名称 说明
public method Copy Returns a new T:Microsoft.IdentityModel.Claims.ClaimsPrincipal object copied from this object
public methodstatic CreateFromHttpContext 已重载。  
public methodstatic CreateFromIdentities 已重载。  
public methodstatic CreateFromIdentity 已重载。  
public methodstatic CreateFromPrincipal 已重载。  
public method Equals  已重载。 (从 Object 继承)
public method GetHashCode  (从 Object 继承)
public method GetType  (从 Object 继承)
public method 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.
public methodstatic ReferenceEquals  (从 Object 继承)
public methodstatic SelectPrimaryIdentity This method iterates through the collection of ClaimsIdentities and determines which identity must be used as the primary one.
public method ToString  (从 Object 继承)

页首

Protected 方法

  名称 说明
protected method Finalize  (从 Object 继承)
protected method MemberwiseClone  (从 Object 继承)

页首

请参见

参考

ClaimsPrincipal 类
Microsoft.IdentityModel.Claims 命名空间

版权所有 (C) 2008 Microsoft Corporation。保留所有权利。