SystemWebSectionGroup.HttpHandlers Proprietà

Definizione

Ottiene la sezione httpHandlers.

public:
 property System::Web::Configuration::HttpHandlersSection ^ HttpHandlers { System::Web::Configuration::HttpHandlersSection ^ get(); };
[System.Configuration.ConfigurationProperty("httpHandlers")]
public System.Web.Configuration.HttpHandlersSection HttpHandlers { get; }
[<System.Configuration.ConfigurationProperty("httpHandlers")>]
member this.HttpHandlers : System.Web.Configuration.HttpHandlersSection
Public ReadOnly Property HttpHandlers As HttpHandlersSection

Valore della proprietà

HttpHandlersSection

Oggetto HttpHandlersSection.

Attributi

Esempio

Nell'esempio di codice seguente viene illustrato come ottenere l'oggetto HttpHandlersSection dal file di configurazione di un'applicazione Web esistente.

// 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);
' Get the httpHandlers section.
Dim httpHandlers _
As HttpHandlersSection = _
systemWeb.HttpHandlers
' Read section information.
info = httpHandlers.SectionInformation
name = info.SectionName
type = info.Type
declared = info.IsDeclared.ToString()
msg = String.Format("Name:     {0}" + _
ControlChars.Lf + "Declared: {1}" + _
ControlChars.Lf + "Type:     {2}" + _
ControlChars.Lf, name, declared, type)

Commenti

L'oggetto HttpHandlersSection fa riferimento alla sezione httpHandlers del file di configurazione.

Si applica a

Vedi anche