Share via


ClaimsPrincipalPermission Members

[Starting with the .NET Framework 4.5, Windows Identity Foundation (WIF) has been fully integrated into the .NET Framework. The version of WIF addressed by this topic, WIF 3.5, is deprecated and should only be used when developing against the .NET Framework 3.5 SP1 or the .NET Framework 4. For more information about WIF in the .NET Framework 4.5, also known as WIF 4.5, see the Windows Identity Foundation documentation in the .NET Framework 4.5 Development Guide.]

Represents the permission required to access a resource.

The following tables list the members exposed by the ClaimsPrincipalPermission type.

Public Constructors

  Name Description
  ClaimsPrincipalPermission Creates a new instance of the ClaimsPrincipalPermission class.

Top

Public Methods

(see also Protected Methods)

  Name Description
public methodstatic CheckAccess Checks if the current principal is authorized to perform the specified action on the specified resource.
public method Copy Returns a copy of the current ClaimsPrincipalPermission instance.
public method Demand Checks if the current principal is authorized for the action-resource pairs associated with this instance.
public method Equals  (Inherited from Object)
public method FromXml Initializes the current instance from the specified SecurityElement.
public method GetHashCode  (Inherited from Object)
public method GetType  (Inherited from Object)
public method Intersect Returns a new ClaimsPrincipalPermission object that has only those ResourceAction objects that are present in both the current instance and in the target instance.
public method IsSubsetOf Returns a value that indicates whether all of the resource-action pairs contained in the current instance are also present in the target instance.
public method IsUnrestricted Returns a value that indicates whether the permission is unrestricted.
public method ToString  (Inherited from Object)
public method ToXml Returns the XML encoded form of the current instance.
public method Union Returns a new ClaimsPrincipalPermission object that has all of the resource-action pairs that are present in the current instance and the target instance.

Top

Protected Methods

  Name Description
protected method Finalize  (Inherited from Object)
protected method MemberwiseClone  (Inherited from Object)

Top

See Also

Reference

ClaimsPrincipalPermission Class
Microsoft.IdentityModel.Claims Namespace

Copyright © 2008 by Microsoft Corporation. All rights reserved.