Szerkesztés

Megosztás a következőn keresztül:


HttpContextBase.RemapHandler(IHttpHandler) Method

Definition

When overridden in a derived class, specifies a handler for the request.

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

Parameters

handler
IHttpHandler

The object that should process the request.

Exceptions

A derived type fails to implement this method.

Remarks

If you set handler to null, the default handler is used to process the request. You can set handler to either an asynchronous handler or to an synchronous handler. The handler must implement the IHttpHandler interface.

Applies to