HttpHandlerAction Constructor (String, String, String, Boolean)


This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the HttpHandlerAction class using the passed parameters.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

public HttpHandlerAction(
	string path,
	string type,
	string verb,
	bool validate


Type: System.String

The HttpHandlerAction URL path.

Type: System.String

A comma-separated class/assembly combination consisting of version, culture, and public-key tokens.

Type: System.String

A comma-separated list of HTTP verbs (for example, "GET, PUT, POST").

Type: System.Boolean

true to allow validation; otherwise, false. If false, ASP.NET will not attempt to load the class until the actual matching request comes, potentially delaying the error but improving the startup time.

The HttpHandlerAction constructor is not intended to be used directly from your code. It is called by the ASP.NET configuration system. You obtain an instance of the HttpHandlerAction class by using the Handlers property.

The following code example shows how to create an HttpHandlerAction object.

// Add a new HttpHandlerAction to the Handlers property HttpHandlerAction collection.
httpHandlersSection.Handlers.Add(new HttpHandlerAction(
    "Samples.Aspnet.SystemWebConfiguration.Calculator, CalculatorHandler", 

.NET Framework
Available since 2.0
Return to top