Share via


ClaimsPrincipal 成員

Provides methods that retrieve information about the current caller.

下表列出 ClaimsPrincipal 型別公開的成員。

公用 建構函式

  名稱 描述
  ClaimsPrincipal 多載。  

最上層

公用 屬性

  名稱 描述
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 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 method Finalize  (繼承自 Object)
protected method MemberwiseClone  (繼承自 Object)

最上層

請參閱

參考

ClaimsPrincipal 類別
Microsoft.IdentityModel.Claims 命名空間

Copyright © 2008 by Microsoft Corporation.All rights reserved.