HttpApplication.Dispose 方法

定义

处置 HttpApplication 实例。Disposes the HttpApplication instance.

public:
 virtual void Dispose();
public virtual void Dispose ();
abstract member Dispose : unit -> unit
override this.Dispose : unit -> unit
Public Overridable Sub Dispose ()

实现

注解

RequestResponseSessionApplication 属性在 Dispose 方法执行时不可用。The Request, Response, Session, and Application properties are not available for use when the Dispose method executes.

Dispose 方法对应用程序实例中的每个已注册 HttpModules 调用 Dispose 方法,并引发 Disposed 事件。The Dispose method calls the Dispose method on each of the registered HttpModules in the application instance and raises the Disposed event.

继承者说明

当在派生类中重写 Dispose() 时,请确保调用基类的 Dispose() 方法,以便注册的委托接收事件。When overriding Dispose() in a derived class, make sure to call the base class's Dispose() method so that registered delegates receive the event.

适用于