次の方法で共有


ClaimsPrincipalPermission メンバー

ClaimsPrincipalPermission represents the permission required to access a resource. ClaimsPrincipalPermission takes in a string that represents the resource to be accessed, and a string that represents the action to be performed on the resource. When Demand is called, the principal must have the permission to perform the specified action on the specified resource, or Demand throws an exception. This permission is checked by CheckAccess.

次の表に、ClaimsPrincipalPermission 型によって公開されているメンバーを示します。

パブリック コンストラクター

  名前 説明
  ClaimsPrincipalPermission Creates an instance of the ClaimsPrincipalPermission class.

このページのトップへ

パブリック メソッド

(プロテクト メソッド も参照してください)

  名前 説明
public methodstatic CheckAccess Checks if the current principal is authorized to perform the given action on the given resource.
public method Copy Returns a copy of the current ClaimsPrincipalPermission instance.
public method Demand Checks if the policy engine authorizes the current principal to perform the actions on the specified resources.
public method Equals  オーバーロードされています。 (Object から継承)
public method FromXml Initializes the current instance from the SecurityElement.
public method GetHashCode  (Object から継承)
public method GetType  (Object から継承)
public method Intersect Returns a new ClaimsPrincipalPermission object that has only those ResourceAction objects which are present in both the current instance and the target instance.
public method IsSubsetOf Checks if all the ResourceAction objects contained in the current instance is also present in the target instance.
public method IsUnrestricted Returns true if the permission is unrestricted; otherwise, returns false.
public methodstatic ReferenceEquals  (Object から継承)
public method ToString  (Object から継承)
public method ToXml Returns the XML encoded form of the current instance.
public method Union Returns a new ClaimsPrincipalPermission object that has the ResourceAction objects which are present in both the current instance and the target instance.

このページのトップへ

プロテクト メソッド

  名前 説明
protected method Finalize  (Object から継承)
protected method MemberwiseClone  (Object から継承)

このページのトップへ

関連項目

参照

ClaimsPrincipalPermission クラス
Microsoft.IdentityModel.Claims 名前空間

Copyright © 2008 by Microsoft Corporation. All rights reserved.