IHttpAsyncHandler 介面

定義

定義 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在 [設定] 區段中,您可以使用設定檔,將類別與副檔名或特定 URL 相關聯 httpHandlersAn 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.

屬性

IsReusable

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

(繼承來源 IHttpHandler)

方法

BeginProcessRequest(HttpContext, AsyncCallback, Object)

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

EndProcessRequest(IAsyncResult)

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

ProcessRequest(HttpContext)

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

(繼承來源 IHttpHandler)

適用於