PageHandlerFactory.GetHandler(HttpContext, String, String, String) PageHandlerFactory.GetHandler(HttpContext, String, String, String) PageHandlerFactory.GetHandler(HttpContext, String, String, String) PageHandlerFactory.GetHandler(HttpContext, String, String, String) Method

Definition

Returns an instance of the IHttpHandler interface to process the requested resource.

public:
 virtual System::Web::IHttpHandler ^ GetHandler(System::Web::HttpContext ^ context, System::String ^ requestType, System::String ^ virtualPath, System::String ^ path);
public virtual System.Web.IHttpHandler GetHandler (System.Web.HttpContext context, string requestType, string virtualPath, string path);
abstract member GetHandler : System.Web.HttpContext * string * string * string -> System.Web.IHttpHandler
override this.GetHandler : System.Web.HttpContext * string * string * string -> System.Web.IHttpHandler
Public Overridable Function GetHandler (context As HttpContext, requestType As String, virtualPath As String, path As String) As IHttpHandler

Parameters

context
HttpContext HttpContext HttpContext HttpContext

An instance of the HttpContext class that provides references to intrinsic server objects (for example, Request, Response, Session, and Server) used to service HTTP requests.

requestType
String String String String

The HTTP data transfer method (GET or POST) that the client uses.

virtualPath
String String String String

The virtual path to the requested resource.

path
String String String String

The PhysicalApplicationPath property to the requested resource.

Returns

A new IHttpHandler that processes the request; otherwise, null.

Implements

Remarks

The GetHandler method is called by the ASP.NET run time and returns either a valid instance of the IHttpHandler interface or null.

Applies to

See also