HttpHandlerAction Construtores

Definição

Inicializa uma nova instância da classe HttpHandlerAction.Initializes a new instance of the HttpHandlerAction class.

Sobrecargas

HttpHandlerAction(String, String, String)

Inicializa uma nova instância da classe HttpHandlerAction usando os parâmetros passados.Initializes a new instance of the HttpHandlerAction class using the passed parameters.

HttpHandlerAction(String, String, String, Boolean)

Inicializa uma nova instância da classe HttpHandlerAction usando os parâmetros passados.Initializes a new instance of the HttpHandlerAction class using the passed parameters.

HttpHandlerAction(String, String, String)

Inicializa uma nova instância da classe HttpHandlerAction usando os parâmetros passados.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)

Parâmetros

path
String

O caminho da URL de HttpHandlerAction.The HttpHandlerAction URL path.

type
String

Uma combinação de classe/assembly separada por vírgulas que consiste de versão, cultura e tokens de chave pública.A comma-separated class/assembly combination consisting of version, culture, and public-key tokens.

verb
String

Uma lista separada por vírgulas de verbos HTTP (por exemplo, "GET, PUT, POST").A comma-separated list of HTTP verbs (for example, "GET, PUT, POST").

Comentários

O HttpHandlerAction Construtor não se destina a ser usado diretamente do seu código.The HttpHandlerAction constructor is not intended to be used directly from your code. Ele é chamado pelo sistema de configuração do ASP.NET.It is called by the ASP.NET configuration system. Você Obtém uma instância da HttpHandlerAction classe usando a Handlers propriedade.You obtain an instance of the HttpHandlerAction class by using the Handlers property.

Aplica-se a

HttpHandlerAction(String, String, String, Boolean)

Inicializa uma nova instância da classe HttpHandlerAction usando os parâmetros passados.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)

Parâmetros

path
String

O caminho da URL de HttpHandlerAction.The HttpHandlerAction URL path.

type
String

Uma combinação de classe/assembly separada por vírgulas que consiste de versão, cultura e tokens de chave pública.A comma-separated class/assembly combination consisting of version, culture, and public-key tokens.

verb
String

Uma lista separada por vírgulas de verbos HTTP (por exemplo, "GET, PUT, POST").A comma-separated list of HTTP verbs (for example, "GET, PUT, POST").

validate
Boolean

true para permitir a validação; caso contrário, false.true to allow validation; otherwise, false. Se false, ASP.NET não tentará carregar a classe até a vinda da solicitação correspondente propriamente dita, potencialmente atrasando o erro mas melhorando o tempo de inicialização.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.

Exemplos

O exemplo de código a seguir mostra como criar um HttpHandlerAction objeto.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))

Comentários

O HttpHandlerAction Construtor não se destina a ser usado diretamente do seu código.The HttpHandlerAction constructor is not intended to be used directly from your code. Ele é chamado pelo sistema de configuração do ASP.NET.It is called by the ASP.NET configuration system. Você Obtém uma instância da HttpHandlerAction classe usando a Handlers propriedade.You obtain an instance of the HttpHandlerAction class by using the Handlers property.

Aplica-se a