UrlAuthorizationModule.Init(HttpApplication) 方法

定义

初始化 UrlAuthorizationModule 对象。Initializes the UrlAuthorizationModule object.

public:
 virtual void Init(System::Web::HttpApplication ^ app);
public void Init (System.Web.HttpApplication app);
abstract member Init : System.Web.HttpApplication -> unit
override this.Init : System.Web.HttpApplication -> unit
Public Sub Init (app As HttpApplication)

参数

app
HttpApplication

当前的 HttpApplication 实例。The current HttpApplication instance.

实现

注解

此方法不应从应用程序代码调用。This method is not intended to be called from application code.

方法可确保UrlAuthorizationModuleAuthorizeRequest事件的处理中包括。 InitThe Init method ensures that the UrlAuthorizationModule is included in the processing of the AuthorizeRequest event.

适用于

另请参阅