AssertionRequirement Class
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.
Implements an IAuthorizationHandler and IAuthorizationRequirement that takes a user specified assertion.
public ref class AssertionRequirement : Microsoft::AspNetCore::Authorization::IAuthorizationHandler, Microsoft::AspNetCore::Authorization::IAuthorizationRequirement
public class AssertionRequirement : Microsoft.AspNetCore.Authorization.IAuthorizationHandler, Microsoft.AspNetCore.Authorization.IAuthorizationRequirement
type AssertionRequirement = class
interface IAuthorizationHandler
interface IAuthorizationRequirement
Public Class AssertionRequirement
Implements IAuthorizationHandler, IAuthorizationRequirement
- Inheritance
-
AssertionRequirement
- Implements
Constructors
AssertionRequirement(Func<AuthorizationHandlerContext,Boolean>) |
Creates a new instance of AssertionRequirement. |
AssertionRequirement(Func<AuthorizationHandlerContext,Task<Boolean>>) |
Creates a new instance of AssertionRequirement. |
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
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