HttpApplication.AuthorizeRequest 事件

定义

当安全模块已验证用户授权时发生。Occurs when a security module has verified user authorization.

public:
 event EventHandler ^ AuthorizeRequest;
public event EventHandler AuthorizeRequest;
member this.AuthorizeRequest : EventHandler 
Public Custom Event AuthorizeRequest As EventHandler 

注解

AuthorizeRequest 事件表明 ASP.NET 已授权当前请求。The AuthorizeRequest event signals that ASP.NET has authorized the current request. 订阅 AuthorizeRequest 事件可确保在处理附加的模块或事件处理程序之前,对请求进行身份验证和授权。Subscribing to the AuthorizeRequest event ensures that the request will be authenticated and authorized before processing the attached module or event handler.

有关如何处理事件的详细信息,请参阅处理和引发事件For more information about how to handle events, see Handling and Raising Events.

适用于

另请参阅