편집

다음을 통해 공유


EvaluationContext.AddClaimSet(IAuthorizationPolicy, ClaimSet) Method

Definition

Adds a set of claims to the evaluation context.

public:
 abstract void AddClaimSet(System::IdentityModel::Policy::IAuthorizationPolicy ^ policy, System::IdentityModel::Claims::ClaimSet ^ claimSet);
public abstract void AddClaimSet (System.IdentityModel.Policy.IAuthorizationPolicy policy, System.IdentityModel.Claims.ClaimSet claimSet);
abstract member AddClaimSet : System.IdentityModel.Policy.IAuthorizationPolicy * System.IdentityModel.Claims.ClaimSet -> unit
Public MustOverride Sub AddClaimSet (policy As IAuthorizationPolicy, claimSet As ClaimSet)

Parameters

policy
IAuthorizationPolicy

An IAuthorizationPolicy that represents the authorization policy that is adding claims to the evaluation context.

claimSet
ClaimSet

A ClaimSet that contains a set of claims.

Remarks

The claims are added to the set of claims contained within the ClaimSets property.

Each time the AddClaimSet method is called to add claims to the evaluation context, the Generation property should be incremented.

Applies to