Editar

Compartilhar via


HttpHandlerAction Constructors

Definition

Initializes a new instance of the HttpHandlerAction class.

Overloads

HttpHandlerAction(String, String, String)

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

HttpHandlerAction(String, String, String, Boolean)

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

HttpHandlerAction(String, String, String)

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

public:
 HttpHandlerAction(System::String ^ path, System::String ^ type, System::String ^ verb);
public HttpHandlerAction (string path, string type, string verb);
new System.Web.Configuration.HttpHandlerAction : string * string * string -> System.Web.Configuration.HttpHandlerAction
Public Sub New (path As String, type As String, verb As String)

Parameters

path
String

The HttpHandlerAction URL path.

type
String

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

verb
String

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

Remarks

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.

Applies to

HttpHandlerAction(String, String, String, Boolean)

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

public:
 HttpHandlerAction(System::String ^ path, System::String ^ type, System::String ^ verb, bool validate);
public HttpHandlerAction (string path, string type, string verb, bool validate);
new System.Web.Configuration.HttpHandlerAction : string * string * string * bool -> System.Web.Configuration.HttpHandlerAction
Public Sub New (path As String, type As String, verb As String, validate As Boolean)

Parameters

path
String

The HttpHandlerAction URL path.

type
String

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

verb
String

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

validate
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.

Examples

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));
' Add a new HttpHandlerAction to the Handlers property HttpHandlerAction collection.
httpHandlersSection.Handlers.Add(new HttpHandlerAction( _
    "Calculator.custom", _
    "Samples.Aspnet.SystemWebConfiguration.Calculator, CalculatorHandler", _
    "GET", _
    true))

Remarks

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.

Applies to