อ่านในภาษาอังกฤษ แก้ไข

แชร์ผ่าน


EvaluationContext.Generation Property

Definition

Gets the number of times that claims have been added to the evaluation context.

C#
public abstract int Generation { get; }

Property Value

The number of times that claims have been added to the evaluation context.

Remarks

The ServiceAuthorizationManager class uses the Generation property to determine if another evaluation round is required. Each time an authorization policy calls the AddToTarget method to add claims to the evaluation context, the Generation property is incremented.

The ServiceAuthorizationManager class examines the Generation property after calling the Evaluate method on all authorization policies again. If the Generation property has been incremented during evaluation, the ServiceAuthorizationManager class calls the Evaluate method on any authorization policies that returned false the last time the Evaluate method was called on that authorization policy.

Applies to

ผลิตภัณฑ์ เวอร์ชัน
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)