IHttpAsyncHandler Interface


定义 HTTP 异步处理程序对象必须实现的协定。Defines the contract that HTTP asynchronous handler objects must implement.

public interface class IHttpAsyncHandler : System::Web::IHttpHandler
public interface IHttpAsyncHandler : System.Web.IHttpHandler
type IHttpAsyncHandler = interface
    interface IHttpHandler
Public Interface IHttpAsyncHandler
Implements IHttpHandler


IHttpAsyncHandler类可以httpHandlers在配置节中通过配置文件与文件扩展名或特定 URL 相关联。An IHttpAsyncHandler class can be associated with a file name extension or a particular URL by a configuration file, in the httpHandlers configuration section. 然后, ASP.NET 基础结构将实例化并在收到相应的请求时调用该处理程序。The ASP.NET infrastructure will then instantiate and call the handler when the corresponding request is received. 或者, 可以在 foo.ashx 文件中定义该处理程序, 并在收到 foo.ashx 文件的相应请求时, 将执行该处理程序。Alternatively, the handler can be defined in an .ashx file and when the corresponding request is received for the .ashx file the handler will be executed.



获取一个值,该值指示其他请求是否可以使用 IHttpHandler 实例。Gets a value indicating whether another request can use the IHttpHandler instance.

(Inherited from IHttpHandler)


BeginProcessRequest(HttpContext, AsyncCallback, Object)

启动对 HTTP 处理程序的异步调用。Initiates an asynchronous call to the HTTP handler.


进程结束时提供异步处理 End 方法。Provides an asynchronous process End method when the process ends.


通过实现 IHttpHandler 接口的自定义 HttpHandler 启用 HTTP Web 请求的处理。Enables processing of HTTP Web requests by a custom HttpHandler that implements the IHttpHandler interface.

(Inherited from IHttpHandler)

Applies to