AssertionRequirement Class

Definition

Implements an IAuthorizationHandler and IAuthorizationRequirement that takes a user specified assertion.

C#
public class AssertionRequirement : Microsoft.AspNetCore.Authorization.IAuthorizationHandler, Microsoft.AspNetCore.Authorization.IAuthorizationRequirement
Inheritance
AssertionRequirement
Implements

Constructors

Properties

Handler

Function that is called to handle this requirement.

Methods

HandleAsync(AuthorizationHandlerContext)

Calls Handler to see if authorization is allowed.

ToString()

Returns a string that represents the current object.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0