EvaluationContext.AddClaimSet Method (IAuthorizationPolicy, ClaimSet)

 

Adds a set of claims to the evaluation context.

Namespace:   System.IdentityModel.Policy
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public abstract void AddClaimSet(
	IAuthorizationPolicy policy,
	ClaimSet claimSet
)

Parameters

policy
Type: System.IdentityModel.Policy.IAuthorizationPolicy

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

claimSet
Type: System.IdentityModel.Claims.ClaimSet

A ClaimSet that contains a set of claims.

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.

.NET Framework
Available since 3.0
Return to top
Show: