IHttpAsyncHandler IHttpAsyncHandler IHttpAsyncHandler 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類別可以在關聯的副檔名或特定的組態檔中,URLhttpHandlers組態區段。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. 或者,在.ashx 檔案和.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.

方法

BeginProcessRequest(HttpContext, AsyncCallback, Object) BeginProcessRequest(HttpContext, AsyncCallback, Object) BeginProcessRequest(HttpContext, AsyncCallback, Object) BeginProcessRequest(HttpContext, AsyncCallback, Object)

啟始對 HTTP 處理常式的非同步呼叫 (Asynchronous Call)。Initiates an asynchronous call to the HTTP handler.

EndProcessRequest(IAsyncResult) EndProcessRequest(IAsyncResult) EndProcessRequest(IAsyncResult) EndProcessRequest(IAsyncResult)

處理序結束時,提供非同步處理序 End 方法。Provides an asynchronous process End method when the process ends.

ProcessRequest(HttpContext) ProcessRequest(HttpContext) ProcessRequest(HttpContext) ProcessRequest(HttpContext)

以實作 IHttpHandler 介面的自訂 HttpHandler 來啟用 HTTP Web 要求的處理。Enables processing of HTTP Web requests by a custom HttpHandler that implements the IHttpHandler interface.

(Inherited from IHttpHandler)

屬性

IsReusable IsReusable IsReusable IsReusable

取得值,指出另一個要求是否可以使用 IHttpHandler 執行個體。Gets a value indicating whether another request can use the IHttpHandler instance.

(Inherited from IHttpHandler)

適用於