SystemWebSectionGroup.HttpHandlers Propriedade

Definição

Obtém a seção httpHandlers.

C#
[System.Configuration.ConfigurationProperty("httpHandlers")]
public System.Web.Configuration.HttpHandlersSection HttpHandlers { get; }

Valor da propriedade

O objeto HttpHandlersSection.

Atributos

Exemplos

O exemplo de código a seguir mostra como obter o HttpHandlersSection objeto do arquivo de configuração de um aplicativo Web existente.

C#
// Get the httpHandlers section.
HttpHandlersSection httpHandlers =
    systemWeb.HttpHandlers;
// Read section information.
info =
    httpHandlers.SectionInformation;
name = info.SectionName;
type = info.Type;
declared = info.IsDeclared.ToString();
msg = String.Format(
    "Name:     {0}\nDeclared: {1}\nType:     {2}\n",
    name, declared, type);

Comentários

O HttpHandlersSection objeto refere-se à httpHandlers seção do arquivo de configuração.

Aplica-se a

Produto Versões
.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

Confira também