HttpContext.RemapHandler(IHttpHandler) HttpContext.RemapHandler(IHttpHandler) HttpContext.RemapHandler(IHttpHandler) HttpContext.RemapHandler(IHttpHandler) Method

定義

可讓您指定要求適用的處理常式。Enables you to specify a handler for the request.

public:
 void RemapHandler(System::Web::IHttpHandler ^ handler);
public void RemapHandler (System.Web.IHttpHandler handler);
member this.RemapHandler : System.Web.IHttpHandler -> unit
Public Sub RemapHandler (handler As IHttpHandler)

參數

handler
IHttpHandler IHttpHandler IHttpHandler IHttpHandler

應該處理此要求的物件。The object that should process the request.

例外狀況

備註

如果您將handler設定null為, 則會使用預設處理常式來處理要求。If you set handler to null, the default handler is used to process the request. 您可以將handler設定為非同步處理常式或同步處理常式。You can set handler to either an asynchronous handler or to an synchronous handler. 處理常式必須執行IHttpHandler介面。The handler must implement the IHttpHandler interface.

適用於