EvaluationContext.AddClaimSet(IAuthorizationPolicy, ClaimSet) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för