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, string requestType, string virtualPath, string path);

Parameters

context
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

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

virtualPath
String

The virtual path to the requested resource.

path
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

Өнім Нұсқалар
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also