Share via


HttpHandlersSection.Handlers Eigenschaft

Definition

Ruft die HttpHandlerActionCollection-Auflistung der HttpHandlerAction-Objekte ab, die im HttpHandlersSection-Objekt enthalten sind.

public:
 property System::Web::Configuration::HttpHandlerActionCollection ^ Handlers { System::Web::Configuration::HttpHandlerActionCollection ^ get(); };
[System.Configuration.ConfigurationProperty("", IsDefaultCollection=true)]
public System.Web.Configuration.HttpHandlerActionCollection Handlers { get; }
[<System.Configuration.ConfigurationProperty("", IsDefaultCollection=true)>]
member this.Handlers : System.Web.Configuration.HttpHandlerActionCollection
Public ReadOnly Property Handlers As HttpHandlerActionCollection

Eigenschaftswert

Eine HttpHandlerActionCollection, die die HttpHandlerAction-Objekte (Handler) enthält.

Attribute

Beispiele

Im folgenden Codebeispiel wird der Zugriff auf die HttpHandlerAction Handler veranschaulicht.

// Get a HttpHandlerAction in the Handlers property HttpHandlerAction collection.
HttpHandlerAction httpHandler = httpHandlers[0];
' Get a HttpHandlerAction in the Handlers property HttpHandlerAction collection.
Dim httpHandler As HttpHandlerAction = httpHandlers(0)

Hinweise

Die Handlers von dieser Methode zurückgegebene Eigenschaftsauflistung verweist nicht auf ein tatsächliches Element in der zugrunde liegenden Konfigurationsdatei. Es handelt sich um ein System.Web.Configuration Konstrukt, das einfachen Zugriff auf die darin enthaltenen Handler ermöglicht. Dies ist ein gängiges Muster für die Verarbeitung der Elemente einer Konfigurationsdatei.

Gilt für:

Weitere Informationen