Share via


AccessDeniedModel Class

Definition

Page presenting the Access denied error.

[Microsoft.AspNetCore.Authorization.AllowAnonymous]
public class AccessDeniedModel : Microsoft.AspNetCore.Mvc.RazorPages.PageModel
[<Microsoft.AspNetCore.Authorization.AllowAnonymous>]
type AccessDeniedModel = class
    inherit PageModel
Public Class AccessDeniedModel
Inherits PageModel
Inheritance
AccessDeniedModel
Attributes

Constructors

AccessDeniedModel()

Methods

OnGet()

Method handling the HTTP GET method.

Applies to