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
)

Parameters

path
Type: System.String

The HttpHandlerAction URL path.

type
Type: System.String

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

verb
Type: System.String

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

validate
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(
    "Calculator.custom", 
    "Samples.Aspnet.SystemWebConfiguration.Calculator, CalculatorHandler", 
    "GET", 
    true));

.NET Framework
Available since 2.0
Return to top
Show: