EvaluationContext.AddClaimSet Method (IAuthorizationPolicy, ClaimSet)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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


Type: System.IdentityModel.Policy.IAuthorizationPolicy

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

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